From 3a5486889fc8c1713975a07ffa7bb84f171c92b9 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Sat, 4 Mar 2023 08:33:22 -0800 Subject: [PATCH] Update chromepolicy.py (#1610) split of an empty string returns [''], the API wants [] --- src/gam/gapi/chromepolicy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam/gapi/chromepolicy.py b/src/gam/gapi/chromepolicy.py index 80837004..03747c14 100644 --- a/src/gam/gapi/chromepolicy.py +++ b/src/gam/gapi/chromepolicy.py @@ -408,7 +408,7 @@ def update_policy(): f'{expected_enums}, got {value}' controlflow.system_error_exit(8, msg) elif vtype in ['TYPE_LIST']: - value = value.split(',') + value = value.split(',') if value else [] if myarg == 'chrome.users.chromebrowserupdates' and \ cased_field == 'targetVersionPrefixSetting': mg = re.compile(r'^([a-z]+)-(\d+)$').match(value)