IOError is deprecated, use OSError

This commit is contained in:
scgbckbone 2023-11-22 12:20:16 +01:00 committed by doc-hex
parent 9188c7faf2
commit 8ec2c7f88c

View File

@ -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