progress: Resolve E722
E722: do not use bare except, specify exception instead Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
This commit is contained in:
parent
c3453422f2
commit
3468a2ec1f
|
@ -29,7 +29,7 @@ def terminal_width(fd=1):
|
|||
return 80
|
||||
# Add minimum too?
|
||||
return ret
|
||||
except: # IOError
|
||||
except IOError:
|
||||
return 80
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue