We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2edc3c commit e475009Copy full SHA for e475009
roundup/cgi/client.py
@@ -527,7 +527,16 @@ def handle_rest(self):
527
self.determine_language()
528
# Open the database as the correct user.
529
# TODO: add everything to RestfulDispatcher
530
- self.determine_user()
+ try:
531
+ self.determine_user()
532
+ except LoginError as err:
533
+ self.response_code = http_.client.UNAUTHORIZED
534
+ output = b"Invalid Login\n"
535
+ self.setHeader("Content-Length", str(len(output)))
536
+ self.setHeader("Content-Type", "text/plain")
537
+ self.write(output)
538
+ return
539
+
540
self.check_anonymous_access()
541
542
# Call rest library to handle the request
0 commit comments