robmcmullen / peppy

NO LONGER MAINTAINED
http://peppy.flipturn.org/
GNU General Public License v2.0
14 stars 7 forks source link

peppy crashes when title buffer fails to load #847

Closed robmcmullen closed 12 years ago

robmcmullen commented 12 years ago

[Trac time 20100604 221324Z] If the title buffer URL gets corrupted somehow, application startup will fail with:

Traceback (most recent call last):
  File "/opt/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14614, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/data2/home/rob/src/peppy/peppy/frame.py", line 571, in titleBuffer
    self.open(wx.GetApp().classprefs.title_page)
  File "/data2/home/rob/src/peppy/peppy/frame.py", line 638, in open
    opener = FileOpener(self, *args, **kwargs)
  File "/data2/home/rob/src/peppy/peppy/fileopener.py", line 74, in __init__
    if 'mode' in self.url.query:
TypeError: argument of type 'NoneType' is not iterable

Probably can only be fixed by changing buffer load process to first create tab and then attempt to load the specified URL.

robmcmullen commented 12 years ago

[Trac time 20100604 233918Z] d214ff1744f6a13237853846062be7702ad097ef Fixed #847: added error handler to handle failure when decoding a URL