Add alias support to REQ helpers for subject/topic.

The alias support is generic here, and we use it for
migrating subject -> topic in REQ_topic().
This commit is contained in:
Steve Howell
2018-11-09 18:45:25 +00:00
committed by Tim Abbott
parent 97062c4017
commit e55fc144b9
6 changed files with 106 additions and 16 deletions

View File

@@ -39,6 +39,7 @@ class ErrorCode(AbstractEnum):
CSRF_FAILED = ()
INVITATION_FAILED = ()
INVALID_ZULIP_SERVER = ()
REQUEST_CONFUSING_VAR = ()
class JsonableError(Exception):
'''A standardized error format we can turn into a nice JSON HTTP response.