exceptionhandler.py 236 B

123456789101112
  1. from misago.core import exceptions
  2. MISAGO_EXCEPTIONS = (
  3. exceptions.PermissionDenied,
  4. exceptions.Http404,
  5. exceptions.OutdatedUrl,
  6. )
  7. def is_misago_exception(exception):
  8. return exception.__class__ in MISAGO_EXCEPTIONS