mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Clean up a bare except: clause.
This commit is contained in:
parent
3db163aa19
commit
67bbd7a773
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue