mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 22:16:33 +02:00
add error message to registry errors
This commit is contained in:
parent
aaaa4f21d2
commit
8b473d5e18
3 changed files with 5 additions and 5 deletions
|
@ -62,9 +62,10 @@ class RegistryError(Exception):
|
|||
- 2501 - 2502 Something malicious or abusive may have occurred
|
||||
"""
|
||||
|
||||
def __init__(self, *args, code=None, **kwargs):
|
||||
def __init__(self, *args, code=None, msg=None,**kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.code = code
|
||||
self.msg = msg
|
||||
|
||||
def should_retry(self):
|
||||
return self.code == ErrorCode.COMMAND_FAILED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue