osmaxx icon indicating copy to clipboard operation
osmaxx copied to clipboard

TypeError: 'AnonymousUser' object is not iterable

Open hixi opened this issue 8 years ago • 1 comments

https://sentry.njo.ch/geometalab/osmaxxprod/issues/238/

TypeError: 'AnonymousUser' object is not iterable
(8 additional frame(s) were not displayed)
...
  File "osmaxx/excerptexport/views.py", line 238, in get_queryset
    return super().get_queryset().filter(owner=user, is_public=False, extraction_orders__orderer=user).distinct()

TypeError: 'AnonymousUser' object is not iterable

hixi avatar Nov 09 '16 10:11 hixi

Should be a HTTP 401 or 403 instead.

das-g avatar Nov 09 '16 10:11 das-g