add 1 more error exception
This commit is contained in:
parent
49ea9b552a
commit
d6dcac1e4e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue