From 7e48f08ced8a4d48aeca1936fcb4e15603a5b623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 11 Mar 2024 12:58:02 +0100 Subject: [PATCH] chg: Catch JS page --- bin/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/importer.py b/bin/importer.py index 6c9d315..dac5e34 100755 --- a/bin/importer.py +++ b/bin/importer.py @@ -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