Skip to content

Commit 21250bd

Browse files
authored
Patch the URL, where query is sometimes missing
1 parent 7b644eb commit 21250bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

actions/lib/base_action.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ def db_connection(self, kwargs_dict):
118118
default_driver = DEFAULT_KNOWN_DRIVER_CONNECTORS.get(connection['drivername'], None)
119119
if default_driver:
120120
connection['drivername'] = default_driver
121+
122+
# Check if query is in de connection
123+
if 'query' in connection:
124+
connection['query'] = ()
121125

122126
# Format the connection string
123127
database_connection_string = URL(**connection)

0 commit comments

Comments
 (0)