aboutsummaryrefslogtreecommitdiff
path: root/cgi/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/api.py')
-rw-r--r--cgi/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/api.py b/cgi/api.py
index 0c6d61a..09e7d75 100644
--- a/cgi/api.py
+++ b/cgi/api.py
@@ -12,9 +12,9 @@ def api(self, path_split):
try:
self.output = api_process(self, path_split)
except APIError as e:
- self.output = api_error("error", e.message)
+ self.output = api_error("error", str(e))
except UserError as e:
- self.output = api_error("failed", e.message)
+ self.output = api_error("failed", str(e))
except Exception as e:
import sys
import traceback