Skip to content

Commit

Permalink
Fix KeyError in non-debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
abdnh committed May 28, 2024
1 parent 332c23f commit ec61913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/importers/ankiapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def _get_request(self, url: str) -> requests.Response:

def _api_get(self, path: str) -> requests.Response:
response = self._get_request(f"https://api.ankiapp.com/{path}")
if os.environ["DEBUG"]:
if "DEBUG" in os.environ:
from ..consts import consts

tmp_dir = consts.dir / "tmp" / "requests"
Expand Down

0 comments on commit ec61913

Please sign in to comment.