Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2936a83

Browse files
committed
Bump stack number on autoreload fail to 10.
This would allow for easier to debug error when encountered.
1 parent a1a338f commit 2936a83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/extensions/autoreload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def check(self, check_all=False, do_reload=True):
252252
del self.failed[py_filename]
253253
except:
254254
print("[autoreload of %s failed: %s]" % (
255-
modname, traceback.format_exc(1)), file=sys.stderr)
255+
modname, traceback.format_exc(10)), file=sys.stderr)
256256
self.failed[py_filename] = pymtime
257257

258258
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)