summaryrefslogtreecommitdiff
path: root/9kwpyqt.py
diff options
context:
space:
mode:
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x9kwpyqt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index aceff68..680ceee 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -337,7 +337,8 @@ class CaptchaGUI(QWidget):
defaultconfig['Autostart'] = 'no'
self.config = configparser.ConfigParser(defaultconfig)
try:
- self.config.read_file(open('9kwpyqt.ini'))
+ with open('9kwpyqt.ini') as configfile:
+ self.config.read_file(configfile)
except FileNotFoundError:
self.writeConfig()
return False