Commits

Matthew Schinckel  committed 146c8a7

Guard against empty data.args

  • Participants
  • Parent commits 03485fc

Comments (0)

Files changed (1)

File rest_api/sites.py

                 # at any call depth, and know it will actually redirect.
                 return response
             except ObjectDoesNotExist, data:
-                return http.NotFound(data.args[0])
+                return http.NotFound(data.args[0] if data.args else '')
                 
         # This is based on the contrib.admin code.
         if not cacheable: