summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index 7848c3d..47767b6 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -266,8 +266,10 @@ class ogRest():
raise ValueError('Mode not supported.')
def send_internal_server_error(self, client, exc=None):
- if exc:
- logging.exception('Unexpected error')
+ if isinstance(exc, AssertionError):
+ logging.exception(exc)
+ else:
+ logging.error(exc)
response = restResponse(ogResponses.INTERNAL_ERR, seq=client.seq)
client.send(response.get())
self.state = ThreadState.IDLE