@@ -309,6 +309,8 @@ def error(self, message, data={}, status=400, extra={}):
if not (status == 404 and self.request.method == "HEAD"):
log(f'Error response returned by [{self.request.path}]: [{message}]')
if message.startswith("Access Error: Invalid"):
That's a very specific thing to catch and handle in a special way. Is this
generic enough? Is there a way to make it more generic (such as raising an
ObjectNotFound exception and handling that differently?).
Sure, that sounds good. Will update.
On Tue, May 4, 2021, 8:07 PM Stefan van der Walt @.***> wrote: