Skip to content

Commit 6fc458c

Browse files
committed
fix: added basic error handler
1 parent 01cad78 commit 6fc458c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mamonsu/plugins/system/windows/cpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Cpu(Plugin):
1010
Items = [
1111

1212
(r'\Processor(*)\% User Time', '[user_time]',
13-
'User time', Plugin.UNITS.percent, ('CC0000')),
13+
'User time', Plugin.UNITS.percent, 'CC0000'),
1414

1515
(r'\Processor(*)\% Idle Time', '[idle_time]',
1616
'Idle time', Plugin.UNITS.percent, ('00CC00')),

mamonsu/plugins/system/windows/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def get_drive_info(cls, drive):
9393
ret = kernel32.GetDiskFreeSpaceExW(
9494
str(drive), byref(used), byref(total), byref(free))
9595
if ret == 0:
96-
raise
96+
raise BaseException
9797
else:
9898
return _diskusage(total.value, used, free.value)
9999

0 commit comments

Comments
 (0)