OpenBSD crash on start without a swap file/partition #2719

pull/2721/head
Nicolas Hennion 2024-04-08 09:56:49 +00:00
parent c62292444b
commit 693cd8e20d
1 changed files with 2 additions and 1 deletions

View File

@ -79,8 +79,9 @@ class PluginModel(GlancesPluginModel):
# Grab SWAP using the psutil swap_memory method
try:
sm_stats = psutil.swap_memory()
except RuntimeError:
except (OSError, RuntimeError):
# Crash on startup on Illumos when no swap is configured #1767
# OpenBSD crash on start without a swap file/partition #2719
pass
else:
# Get all the swap stats (copy/paste of the psutil documentation)