From f81bb5cd2282b656bcb7f53f3a7646bbf0823ee0 Mon Sep 17 00:00:00 2001 From: scgbckbone Date: Wed, 22 Nov 2023 12:20:16 +0100 Subject: [PATCH] IOError is deprecated, use OSError (cherry picked from commit 8ec2c7f88ce584acbd9fa280913d0655d9fd0b3a) --- shared/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/actions.py b/shared/actions.py index 57933088..bb0a4e7b 100644 --- a/shared/actions.py +++ b/shared/actions.py @@ -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