summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iotop/data.py2
-rw-r--r--iotop/ui.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/iotop/data.py b/iotop/data.py
index 8a6188e..c4e961e 100644
--- a/iotop/data.py
+++ b/iotop/data.py
@@ -38,7 +38,7 @@ ioaccounting = os.path.exists('/proc/self/io')
try:
from iotop.vmstat import VmStat
vmstat_f = VmStat()
-except:
+except IOError:
vm_event_counters = False
else:
vm_event_counters = True
diff --git a/iotop/ui.py b/iotop/ui.py
index 5ea22bc..31a9ae4 100644
--- a/iotop/ui.py
+++ b/iotop/ui.py
@@ -645,7 +645,7 @@ def main():
def safe_main_loop():
try:
main_loop()
- except:
+ except Exception:
pass
_profile(safe_main_loop)
else: