Skip to content

Commit

Permalink
Parse uri earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Oct 4, 2024
1 parent d4602a8 commit 34d9d07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tiled/catalog/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ def from_uri(
echo=DEFAULT_ECHO,
adapters_by_mimetype=None,
):
uri = str(uri)
uri = ensure_specified_sql_driver(uri)
if init_if_not_exists:
# The alembic stamping can only be does synchronously.
# The cleanest option available is to start a subprocess
Expand Down Expand Up @@ -1377,7 +1377,6 @@ def from_uri(
else:
poolclass = None # defer to sqlalchemy default
engine = create_async_engine(
ensure_specified_sql_driver(uri),
echo=echo,
json_serializer=json_serializer,
poolclass=poolclass,
Expand Down

0 comments on commit 34d9d07

Please sign in to comment.