Fix parsing config file for lines that has no values

This commit is contained in:
shortcutme 2019-07-01 16:19:32 +02:00
parent 4c2cf99fd2
commit 612a3f4401
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ class Config(object):
for line in lines:
if line.strip() == "[global]":
global_line_i = i
if line.startswith(key + " ="):
if line.startswith(key + " =") or line == key:
key_line_i = i
i += 1