mirror of
https://github.com/robertmartin8/PyPortfolioOpt.git
synced 2022-11-27 18:02:41 +03:00
add traceback to exceptions
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user