You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2023/09/04 08:05:21 UTC

[incubator-devlake] 03/09: fix: azure devops db connection fail (#5983)

This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch feat#5841
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 147414594c169962c5ea8592506b891522601755
Author: abeizn <zi...@merico.dev>
AuthorDate: Wed Aug 30 21:26:14 2023 +0800

    fix: azure devops db connection fail (#5983)
---
 backend/python/pydevlake/pydevlake/ipc.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/backend/python/pydevlake/pydevlake/ipc.py b/backend/python/pydevlake/pydevlake/ipc.py
index a6ff19476..ee308189d 100644
--- a/backend/python/pydevlake/pydevlake/ipc.py
+++ b/backend/python/pydevlake/pydevlake/ipc.py
@@ -129,6 +129,8 @@ def create_db_engine(db_url) -> Engine:
     connect_args = dict(parse_qsl(urlparse(db_url).query))
     if 'parseTime' in connect_args:
         del connect_args['parseTime']
+    if 'loc' in connect_args:
+        del connect_args['loc']
     try:
         engine = create_engine(base_url, connect_args=connect_args)
         tables = SubtaskRun.metadata.tables