From d6dcac1e4e6a77515665ad159fdcf6c6cebd9d02 Mon Sep 17 00:00:00 2001 From: jvmaia Date: Wed, 26 Sep 2018 19:23:20 -0300 Subject: [PATCH] add 1 more error exception --- twython/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/utils.py b/twython/utils.py index becdc40..37dffa5 100644 --- a/twython/utils.py +++ b/twython/utils.py @@ -7,7 +7,7 @@ def load_users(): with open('users.json', 'r') as f: users = json.load(f) return users - except ValueError as e: + except (ValueError, IOError) as e: print(e) return {}