Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

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

Official Release
closed
None
1
2013-05-21
2013-05-21
Arrigo Marchiori
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

  • 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

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