Skip to content

Commit 0156d50

Browse files
committed
Fix exception matching for license check on Aura
1 parent 581bdb8 commit 0156d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphdatascience/system/system_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def is_licensed(self) -> bool:
5757
isLicensed: bool = self._query_runner.run_cypher(query, custom_error=False).squeeze()
5858
except Exception as e:
5959
# AuraDS does not have `gds.isLicensed`, but is always GDS EE.
60-
if re.match(r"Unknown function 'gds.isLicensed'", str(e)):
60+
if re.match(r".*Unknown function 'gds.isLicensed'.*", str(e)):
6161
isLicensed = True
6262
else:
6363
raise e

0 commit comments

Comments
 (0)