IOError is deprecated, use OSError

(cherry picked from commit 8ec2c7f88c)
This commit is contained in:
scgbckbone 2023-11-22 12:20:16 +01:00 committed by doc-hex
parent 155c71de86
commit f81bb5cd22

View File

@ -1643,7 +1643,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