Skip to content

Commit a3ea80b

Browse files
committed
feat: print error traceback
1 parent 65d62f6 commit a3ea80b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

demo/demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
)
1212
from start_simulation_config_json import start_simulation_json_config
1313
from demo_config import USER_AGENT, EASYSSP_USERNAME, EASYSSP_PASSWORD
14+
import traceback
1415

1516
with (
1617
open("../input/simulation_example.ssp", "rb") as ssp_file,
@@ -54,4 +55,4 @@
5455
# catch ValidationError for incorrect request parameters
5556
# catch ApiException for errors from the API client or the server
5657
except (AuthError, ApiException, ValidationError) as ex:
57-
print(ex)
58+
traceback.print_exc()

0 commit comments

Comments
 (0)