diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2021-05-18 23:30:46 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2021-05-18 23:30:46 -0600 |
commit | 5494e1516c61762e7c4849f229259a835da5511e (patch) | |
tree | 1392ed624739154578248e739e3dcbf6b3b9b0dd | |
parent | 53c362e98febfccd193b27ccaf5c1e74e298d1ae (diff) |
fix error on parsing config file
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/pyssg/configuration.py | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ CHANGES ======= +* finally fix argparse error, questionmark * checking argparse errors * fix missing import diff --git a/src/pyssg/configuration.py b/src/pyssg/configuration.py index ec9f62b..d5a5c08 100644 --- a/src/pyssg/configuration.py +++ b/src/pyssg/configuration.py @@ -27,10 +27,10 @@ class Configuration: raise Exception('wrong config syntax') k: str = kv[0].strip() - k_temp: str = kv[0].strip() + v_temp: str = kv[1].strip() # check if value should be a boolean true - v: Union[str, bool] = k_temp\ - if k_temp.lower() not in ['true', '1', 'yes']\ + v: Union[str, bool] = v_temp\ + if v_temp.lower() not in ['true', '1', 'yes']\ else True opts[k] = v |