Bug #891

otrfileconverter-gui crashes when no apps are installed

Added by abeluck almost 5 years ago. Updated almost 5 years ago.

Status:ResolvedStart date:03/13/2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Component:otrfileconverter

Description

this occcurs because detectfiles() returns an empty list. we should display a nice message instead of crashing.

$ ./otrfileconverter-gui 
Traceback (most recent call last):
  File "./otrfileconverter-gui", line 158, in <module>
    root = App()
  File "./otrfileconverter-gui", line 36, in __init__
    self.setupwindow(self)
  File "./otrfileconverter-gui", line 48, in setupwindow
    self.fromapp.set(optionslist[0]) # initial value
IndexError: list index out of range

History

#1 Updated by abeluck almost 5 years ago

  • Status changed from New to Resolved

fixed 7c1c38ca9baec00c12454a2d8a19e4a82ab72213

not the prettiest thing ever, but it works.

Also available in: Atom PDF