IOError is deprecated, use OSError
This commit is contained in:
parent
9188c7faf2
commit
8ec2c7f88c
@ -1672,7 +1672,7 @@ async def file_picker(msg, suffix=None, min_size=1, max_size=1000000, taster=Non
|
||||
if taster is not None:
|
||||
try:
|
||||
yummy = taster(full_fname)
|
||||
except IOError:
|
||||
except OSError:
|
||||
#print("fail: %s" % full_fname)
|
||||
yummy = False
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user