Skip to content

Commit

Permalink
chg: Catch JS page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Mar 11, 2024
1 parent 4e0e71c commit 7e48f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _fetch(self) -> Path | None:
response = requests.get(self.json_db_url, headers=headers)
self.logger.info('Fetching done.')
if content := response.content:
if content[0] == b'<':
if content[0] == 60: # 60 is b'<'
self.logger.error('Got the dumb JS page, will try again later...')
return None

Expand Down

0 comments on commit 7e48f08

Please sign in to comment.