mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-23 16:14:20 +01:00
helpme: fix out of range access in configfile parser
This commit is contained in:
committed by
Christian Decker
parent
41e440522e
commit
62e237235d
@@ -512,7 +512,7 @@ node! Be prepared to lose your funds (but please report a bug if you do!)
|
|||||||
continue
|
continue
|
||||||
parts = l2.split('=', 1)
|
parts = l2.split('=', 1)
|
||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
parts[1] = None
|
parts.append(None)
|
||||||
config[parts[0]].append(parts[1])
|
config[parts[0]].append(parts[1])
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user