summaryrefslogtreecommitdiff
path: root/python/enterprise.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-03-31 15:12:19 -0400
committerGlenn Smith <glenn@vector35.com>2025-03-31 15:12:19 -0400
commit8093106217331012734564301118244748535715 (patch)
treed7fc7ddb4d94bbd779d3d90a00c5204fe32f7468 /python/enterprise.py
parenta96818fc7a696f6f925c024767145c82fe39b523 (diff)
Python: Make enterprise.connect() check for enterprise.initialize()
Diffstat (limited to 'python/enterprise.py')
-rw-r--r--python/enterprise.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/enterprise.py b/python/enterprise.py
index 03846a17..1ab04fdd 100644
--- a/python/enterprise.py
+++ b/python/enterprise.py
@@ -39,6 +39,8 @@ def connect():
"""
Connect to the Enterprise Server.
"""
+ if not is_initialized():
+ initialize()
if not core.BNConnectEnterpriseServer():
raise RuntimeError(last_error())