diff options
Diffstat (limited to 'cgi/api.py')
-rw-r--r-- | cgi/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |