summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpncommon/discovery.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-02-14 14:11:29 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-05 12:26:12 +0200
commit0f5ae9a05b71545f34acde15f50536ff80da4ac0 (patch)
tree280b607a4e991327a6ad4c29863cd5e38b83bb28 /wrappers/python/eduvpncommon/discovery.py
parent943fd5723cb4fd9a916b8baa6858c5895e8172cb (diff)
Python: Simplify error class
Signed-off-by: jwijenbergh <jeroenwijenbergh@protonmail.com>
Diffstat (limited to 'wrappers/python/eduvpncommon/discovery.py')
-rw-r--r--wrappers/python/eduvpncommon/discovery.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wrappers/python/eduvpncommon/discovery.py b/wrappers/python/eduvpncommon/discovery.py
index b30368b..154d007 100644
--- a/wrappers/python/eduvpncommon/discovery.py
+++ b/wrappers/python/eduvpncommon/discovery.py
@@ -43,6 +43,7 @@ class RequestError(GoError):
{
RequestErrorCode.ErrRequestFileError: "file request error",
RequestErrorCode.ErrVerifySigError: "signature verify error",
+ RequestErrorCode.Unknown: "unknown error",
})
@@ -61,6 +62,7 @@ class VerifyError(GoError):
VerifyErrorCode.ErrInvalidSignature: "invalid signature",
VerifyErrorCode.ErrInvalidSignatureUnknownKey: "invalid signature (unknown key)",
VerifyErrorCode.ErrTooOld: "replay of previous signature (rollback)",
+ VerifyErrorCode.Unknown: "unknown error",
})