code-google-com / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

PyStudio - crash report - _onfileaccess #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
received via automatic error reporter logging here until it can be addressed.

*** Fri Jan 13 06:34:08 2012 ***
Traceback (most recent call last):
  File "wx\_core.pyo", line 14660, in <lambda>
  File "c:\users\terry cusick\appdata\roaming\editra\plugins\pystudio-0.4-py2.6.egg\PyStudio\SyntaxChecker\LintShelfWindow.py", line 100, in _onfileaccess
AttributeError: 'NoneType' object has no attribute 'GetFileName'

Original issue reported on code.google.com by CodyPrec...@gmail.com on 21 Jan 2012 at 4:49

GoogleCodeExporter commented 9 years ago
I think this can be trivially fixed by:
        if not editor:
            return

so I've checked in this change. 

Original comment by rans1...@gmail.com on 26 Mar 2012 at 8:02

GoogleCodeExporter commented 9 years ago
Ok, that should avoid the crash. Will close this but may want to investigate 
why the callbacks are coming in when there is no editor.

Original comment by CodyPrec...@gmail.com on 26 Mar 2012 at 8:17