Clean up a bare except: clause.
This commit is contained in:
parent
3db163aa19
commit
67bbd7a773
|
@ -74,7 +74,7 @@ class Message:
|
|||
# (and then assume seek() works, too)
|
||||
try:
|
||||
fp.tell()
|
||||
except:
|
||||
except (AttributeError, IOError):
|
||||
seekable = 0
|
||||
else:
|
||||
seekable = 1
|
||||
|
|
Loading…
Reference in New Issue