Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ce18b386d3 |
+3
-10
@@ -240,16 +240,9 @@ class DataModule(commands.Cog):
|
|||||||
response.status_code == 200
|
response.status_code == 200
|
||||||
and response.json().get("data", {}).get("known", False)
|
and response.json().get("data", {}).get("known", False)
|
||||||
)
|
)
|
||||||
except (
|
except (requests.exceptions.RequestException, ValueError) as exc:
|
||||||
requests.exceptions.RequestException,
|
# Librarian unreachable / garbled answer: we can't judge, so don't
|
||||||
ValueError,
|
# cry wolf. Reset the clock and try again next tick.
|
||||||
AttributeError,
|
|
||||||
KeyError,
|
|
||||||
TypeError,
|
|
||||||
) as exc:
|
|
||||||
# Librarian unreachable / garbled or unexpected answer: we can't
|
|
||||||
# judge, so don't cry wolf, and don't let one bad poll kill the
|
|
||||||
# loop. Reset the clock and try again next tick.
|
|
||||||
self.logger.info("Pending check for %s inconclusive: %s", query_uuid, exc)
|
self.logger.info("Pending check for %s inconclusive: %s", query_uuid, exc)
|
||||||
info["unknown_since"] = None
|
info["unknown_since"] = None
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user