Fixed variable error.
This commit is contained in:
parent
3351472337
commit
f3662f0cf7
1 changed files with 3 additions and 2 deletions
3
main.py
3
main.py
|
|
@ -486,7 +486,7 @@ class MainWindow(QtGui.QWidget):
|
||||||
|
|
||||||
combo.clear()
|
combo.clear()
|
||||||
combo.addItems(nw_version.values)
|
combo.addItems(nw_version.values)
|
||||||
|
f = None
|
||||||
try:
|
try:
|
||||||
f = open(os.path.join(CWD, 'files','nw-versions.txt'), 'w')
|
f = open(os.path.join(CWD, 'files','nw-versions.txt'), 'w')
|
||||||
for v in nw_version.values:
|
for v in nw_version.values:
|
||||||
|
|
@ -496,6 +496,7 @@ class MainWindow(QtGui.QWidget):
|
||||||
self.show_error(error)
|
self.show_error(error)
|
||||||
self.enable_ui_after_error()
|
self.enable_ui_after_error()
|
||||||
finally:
|
finally:
|
||||||
|
if f:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue