From 8ec2c7f88ce584acbd9fa280913d0655d9fd0b3a 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 --- shared/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/actions.py b/shared/actions.py index 083ee70b..3bc9172c 100644 --- a/shared/actions.py +++ b/shared/actions.py @@ -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