We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96b1c83 commit 552ef10Copy full SHA for 552ef10
6.95/plugins/Code editor/pyeditor.py
@@ -392,17 +392,20 @@ def runto(self):
392
393
394
def runtoprob(self):
395
-
396
try:
397
self.path = QtCore.QFileInfo(self.filename).path()
398
- except AttributeError:
399
- pass
400
- self.path = QtCore.QFileInfo(self.filename).path()
401
- g = globals()
402
- os.chdir(str(self.path))
403
- script = str(self.codebox.text())
404
- import cProfile
405
- cProfile.run(script)
+ self.path = QtCore.QFileInfo(self.filename).path()
+ g = globals()
+ os.chdir(str(self.path))
+ script = str(self.codebox.text())
+ import cProfile
+ cProfile.run(script)
+ except Exception as e:
+ print e.__doc__
+ print e.message
406
+ else:
407
408
409
410
411
0 commit comments