Skip to content
Snippets Groups Projects
Commit e3cb8941 authored by Tim Fechner's avatar Tim Fechner
Browse files

Fix #26, max() arg is an empty sequence

parent 2b740561
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ class Minion(MarkdownContent):
def fullest_partition_percentage(self):
try:
return max([p.get('percent', 0) for p in self.data.get('mounted_devices', [])])
except AttributeError:
except (AttributeError, ValueError):
return 0
def __str__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment