Skip to content

Commit

Permalink
Merge pull request #2298 from josevnz/develop
Browse files Browse the repository at this point in the history
Fix crash when no data loaded in raid plugin
  • Loading branch information
RazCrimson committed Mar 19, 2023
2 parents 43e9ed3 + f5dc943 commit 6eb6f9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions glances/plugins/glances_raid.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def msg_curse(self, args=None, max_width=None):
# New line
ret.append(self.curse_new_line())
# Display the current status
if not isinstance(self.stats[array], dict):
continue
status = self.raid_alert(
self.stats[array]['status'],
self.stats[array]['used'],
Expand Down

0 comments on commit 6eb6f9b

Please sign in to comment.