Menu

#157 Variable 'fn' referenced before assignment in exception handler in wxGladeFrame._save_app

closed
None
2015-12-30
2013-05-21
No

wxGlade version 0.6.7

Inside file main.py, inside class wxGladeFrame, inside method _save_app, an exception could be caught at line 779 (I am referring to the current source on bitbucket: https://bitbucket.org/agriggio/wxglade/src/c94dcad734938addc22f83fddaa3af05d37f6b72/main.py?at=default)

The first command of the except block refers to a variable named fn (line 782) that is assigned later, at line 785.

This can result in an another exception being raised: Variable 'fn' referenced before assignment.

Discussion

  • Carsten Grohmann

    Hi Arrigo,

    The reported bug is solved in the revision below. The revision will be part of the next official release.

    changeset: 1246:6c47fb22bdad
    tag: tip
    user: Carsten Grohmann
    date: Tue May 21 20:18:45 2013 +0200
    summary: Fix an uninitialised variable in saving a project file (sf bug # 157)

    Thanks for reporting this bug.

    Carsten

     
  • Carsten Grohmann

    • status: open --> closed
    • assigned_to: Carsten Grohmann
     

Log in to post a comment.