Skip to content

Commit 08eafe4

Browse files
IF config products is an empty string, the array of products will be empty.
1 parent e500b5c commit 08eafe4

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
@@ -59,7 +59,7 @@ def __init__(self, api_url=None, api_key=None, products=None, file=None):
5959
self._api_key = api_key
6060
self._api_url = api_url if api_url.endswith('/') else api_url + '/'
6161
self._products = [products] \
62-
if isinstance(products, str) \
62+
if isinstance(products, str) and products \
6363
else products or []
6464

6565
# Store first created instance

0 commit comments

Comments
 (0)