Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d321f2f5b |
+10
-3
@@ -240,9 +240,16 @@ class DataModule(commands.Cog):
|
||||
response.status_code == 200
|
||||
and response.json().get("data", {}).get("known", False)
|
||||
)
|
||||
except (requests.exceptions.RequestException, ValueError) as exc:
|
||||
# Librarian unreachable / garbled answer: we can't judge, so don't
|
||||
# cry wolf. Reset the clock and try again next tick.
|
||||
except (
|
||||
requests.exceptions.RequestException,
|
||||
ValueError,
|
||||
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)
|
||||
info["unknown_since"] = None
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user