[virt-tools-list] [PATCH 07/17] progress: Resolve E722

Radostin Stoyanov rstoyanov1 at gmail.com
Thu Oct 25 12:37:48 UTC 2018


E722: do not use bare except, specify exception instead

Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
 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




More information about the virt-tools-list mailing list