Skip to content

Commit

Permalink
Tweak DEBUG check
Browse files Browse the repository at this point in the history
  • Loading branch information
abdnh committed May 28, 2024
1 parent 2b1e169 commit 45cf484
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 "DEBUG" in os.environ:
if os.environ.get("DEBUG"):
from ..consts import consts

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

0 comments on commit 45cf484

Please sign in to comment.