Skip to content

Commit

Permalink
fix(#11): Pass on KeyError for invalid JSON token format
Browse files Browse the repository at this point in the history
  • Loading branch information
Samik081 committed Jun 9, 2023
1 parent 24380e6 commit 8171cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/beatport4.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def setup(self):
with open(self._tokenfile()) as f:
beatport_token = BeatportOAuthToken(json.load(f))

except (OSError, AttributeError, JSONDecodeError):
except (OSError, AttributeError, JSONDecodeError, KeyError):
# File does not exist, or has invalid format
pass

Expand Down

0 comments on commit 8171cfc

Please sign in to comment.