~sp00n1na70r/quickly/quickly

« back to all changes in this revision

Viewing changes to quickly/templatetools.py

  • Committer: Michael Terry
  • Date: 2012-09-14 18:37:36 UTC
  • Revision ID: michael.terry@canonical.com-20120914183736-n2kzh7u7gz0sv10w
don't access a variable in the except clause defined in the try clause

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
        set_file_contents(ftarget_file_name.name, new_content)
144
144
 
145
145
    except (OSError, IOError), e:
146
 
        msg = _("%s file was not found or can't update it") % ftarget_file_name
 
146
        msg = _("%s file was not found or can't update it") % filename
147
147
        raise CantUpdateFile(msg)
148
148
 
149
149
def in_verbose_mode():