Skip to content

Commit 7570636

Browse files
committed
fix to exceptHook - add a bit of instruction
1 parent 307ded9 commit 7570636

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GSASII/GSASIIctrlGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def _TestValidity(self):
572572
if self.Validator:
573573
self.Validator.TestValid(self)
574574
self._IndicateValidity()
575-
except RuntimeError:
575+
except RuntimeError: #bandaid to avoid C++ error; deleted self.Validator?
576576
pass
577577

578578
def _IndicateValidity(self):

GSASII/GSASIIpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ def bwTB(): print(IPython.core.ultratb.ListTB().text(*args)) # uncolored
11581158
locals['vTB'] = vTB
11591159
locals['bwTB'] = bwTB
11601160
msg = f'IPython console: {frame.f_code.co_filename}, line {frame.f_lineno}'
1161-
msg += '\n[TB(), vTB()/vTB(0) & bwTB() for tracebacks]'
1161+
msg += '\n[TB(), vTB(-n)/vTB(0) & bwTB() for tracebacks to n levels back]'
11621162
ipshell(msg,local_ns=locals,global_ns=frame.f_globals)
11631163
except:
11641164
msg = 'Entering IPython console (not in error contex)'

0 commit comments

Comments
 (0)