[PATCH 07/17] progress: Resolve E722

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



E722: do not use bare except, specify exception instead

Signed-off-by: Radostin Stoyanov <rstoyanov1@xxxxxxxxx>
---
 virtinst/progress.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/progress.py b/virtinst/progress.py
index 82c191fe..a7bd3adb 100644
--- a/virtinst/progress.py
+++ b/virtinst/progress.py
@@ -29,7 +29,7 @@ def terminal_width(fd=1):
             return 80
         # Add minimum too?
         return ret
-    except:  # IOError
+    except IOError:
         return 80
 
 
-- 
2.17.2

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux