Skip to content

Commit a83e332

Browse files
First created config instance is stored globally instead of the last one.
1 parent efeac01 commit a83e332

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

connect/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def __init__(
6464
if isinstance(products, str) \
6565
else products or []
6666

67-
# Store last created instance
68-
Config.instance = self
67+
# Store first created instance
68+
if not Config.instance:
69+
Config.instance = self
6970

7071
@property
7172
def api_url(self):

0 commit comments

Comments
 (0)