summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-07-22 13:15:38 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-07-22 13:15:38 -0500
commitd37652e0848e4d4a3e06c544c8857aff0d728bbc (patch)
tree2059b9d4e23578769f9e876b256b29734084fc4a /src/services
parent142495eae746a689473a29fa4854eb713d42e59e (diff)
downloadvyos-1x-d37652e0848e4d4a3e06c544c8857aff0d728bbc.tar.gz
vyos-1x-d37652e0848e4d4a3e06c544c8857aff0d728bbc.zip
http-api: remove unneeded check for VyOSError
The only calls to config (return_value, return_values, exists) do not throw VyOSError; remove unneeded except.
Diffstat (limited to 'src/services')
-rwxr-xr-xsrc/services/vyos-http-api-server3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index 4c41fa96d..d5730d86c 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -32,7 +32,6 @@ from waitress import serve
from functools import wraps
from vyos.configsession import ConfigSession, ConfigSessionError
-from vyos.config import VyOSError
DEFAULT_CONFIG_FILE = '/etc/vyos/http-api.conf'
@@ -231,8 +230,6 @@ def retrieve_op(command):
return error(400, "\"{0}\" is not a valid config format".format(config_format))
else:
return error(400, "\"{0}\" is not a valid operation".format(op))
- except VyOSError as e:
- return error(400, str(e))
except ConfigSessionError as e:
return error(400, str(e))
except Exception as e: