Skip to content

Commit

Permalink
add options compat
Browse files Browse the repository at this point in the history
  • Loading branch information
hclivess committed Oct 3, 2019
1 parent a607b00 commit 22e77cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion options.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def load_file(self, filename):
if params[0] == "int":
right = int(right)
elif params[0] == "dict":
right = json.loads(right)
try:
right = json.loads(right)
except: #compatibility
right = [item.strip() for item in right.split(",")]
elif params[0] == "list":
right = [item.strip() for item in right.split(",")]
elif params[0] == "bool":
Expand Down

0 comments on commit 22e77cb

Please sign in to comment.