add traceback to exceptions

This commit is contained in:
robertmartin8
2020-04-27 22:24:19 +08:00
parent cd58334f18
commit cbec9b130f

View File

@@ -3,6 +3,7 @@ The ``exceptions`` module houses custom exceptions. Currently implemented:
- OptimizationError
"""
import traceback
class OptimizationError(Exception):
@@ -19,3 +20,5 @@ class OptimizationError(Exception):
if not (args or kwargs):
args = (default_message,)
super().__init__(*args, **kwargs)
traceback.print_exc()