From 528c954de979eb950174a805fa7f938fad8ac29b Mon Sep 17 00:00:00 2001 From: krateng Date: Fri, 22 Apr 2022 17:14:57 +0200 Subject: [PATCH] Added output for API-caught errors --- maloja/apis/native_v1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maloja/apis/native_v1.py b/maloja/apis/native_v1.py index ba6b71a..1fd5a77 100644 --- a/maloja/apis/native_v1.py +++ b/maloja/apis/native_v1.py @@ -1,5 +1,6 @@ import os import math +import traceback from bottle import response, static_file, request, FormsDict @@ -70,6 +71,7 @@ def catch_exceptions(func): try: return func(*args,**kwargs) except Exception as e: + print(traceback.format_exc()) for etype in errors: if isinstance(e,etype): errorhandling = errors[etype](e)