djmelik / archey

Archey is a system information tool written in Python.

Home Page:http://github.com/djmelik/archey/blob/master/archey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with some hard drive disk usages

HorlogeSkynet opened this issue · comments

Traceback (most recent call last):
File "/usr/bin/archey", line 305, in
func()
File "/usr/bin/archey", line 289, in disk_display
usedpercent = float(re.sub("[A-Z]", "", used)) / float(re.sub("[A-Z]", "", size)) * 100
ValueError: invalid literal for float(): 1,6

There is a problem if a hard drive with some special characters in its name is plugged in.
Thank you !

EDIT: It's not name-related, but same issue about the disk usage parsing (sorry for the duplicate then).