You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Real stack traces swallowed within python shells #294
Just getting started with ponyorm, experimenting around with IPython, I ran into the first minor annoyance. Any issue and stack trace is swallowed within pony:
/usr/local/lib/python2.7/dist-packages/pony/utils/utils.pyc in cut_traceback(func, *args, **kwargs)
72 tb = tb.tb_next
73 if last_pony_tb is None: raise
---> 74 if tb.tb_frame.f_globals.get('__name__').startswith('pony.utils') and tb.tb_frame.f_code.co_name == 'throw':
75 reraise(exc_type, exc, last_pony_tb)
76 reraise(exc_type, exc, full_tb)
AttributeError: 'NoneType' object has no attribute 'startswith'
__name__ is not set in a prompt, mb simply adding '' as default for the get would do already.
Activity
kozlovsky commentedon Sep 23, 2017
Thanks for reporting! Should work now. If you will encounter another shell issues, please report them too.
Pony ORM Release 0.7.3 (2017-10-23)