From 8953d5d8e32a72905bce94aad9c2604c8247d74e Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Wed, 1 Nov 2017 11:35:15 -0400 Subject: Fix crash when value contains `=` If the value contains an equal sign (`=`), we get a crash `ValueError: dictionary update sequence element #3 has length 3; 2 is required` --- ghetto_json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ghetto_json') diff --git a/ghetto_json b/ghetto_json index 8d9e5bd..ebc3d51 100755 --- a/ghetto_json +++ b/ghetto_json @@ -11,7 +11,7 @@ except ImportError: json_load = json.load def main(params_list): - params = dict(x.split("=", 2) for x in params_list) + params = dict(x.split("=", 1) for x in params_list) path = params.pop('path') changed = False -- cgit v1.2.3