Hi @rinag, without showing your code it’s hard for me to determine your issue.
EDIT: Apologies, after looking at my first reply again, I seems like I have formatted the code wrong, looked ok on mobile. It should have read…
import sys
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
sys.path.append(pyt_path)
This is why it failed. However, please use this snippet of code for reference for traceback example…
"""
Description: Traceback example catching Divide by Zero Exception.
Author: Dan Woodcock
Website: https://danimosite.wordpress.com
Licence: N/A
"""
##### Imports #####
import clr
# Add IronPython Path to sys.path. This will expose additional IronPython Modules...
import sys
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
sys.path.append(pyt_path)
# Import traceback module...
import traceback
##### Inputs #####
a = IN[0] # Input any Number...
b = IN[1] # Make this Zero to see traceback error...
##### Main Script #####
# Try divide by zero. We know this will fail and trigger the traceback...
try:
OUT = a/b
except:
# Return Traceback....
OUT = traceback.format_exc()
Hope this helps.
D