Skip to content

Commit a2beed3

Browse files
committed
test fix
1 parent 4430e8d commit a2beed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def load_from_file(self, file):
9292
configs.get('apiKey', '').encode('utf-8'),
9393
configs.get('products'))
9494

95-
products = products.encode('utf-8') if not isinstance(products, list) else products
95+
products = products.encode('utf-8') if not isinstance(products, (str, list)) else products
9696

9797
self.check_credentials(api_url, api_key, products)
9898
self._set_attr(api_url, api_key, products)

0 commit comments

Comments
 (0)