import traceback
theInt = 3
theDict = {'one': 1, 'two':2}
try:
print theInt + theDict
except Exception as e:
print e
print "---"
traceback.print_exc()