Skip to content

Commit

Permalink
misspelled quote
Browse files Browse the repository at this point in the history
  • Loading branch information
ondramie committed Dec 13, 2023
1 parent 5fcde4b commit cbb56b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_diff/databases/_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from data_diff.databases.duckdb import DuckDB
from data_diff.databases.mssql import MsSQL

import urllib.parse
from urllib.parse import unquote


@attrs.define(frozen=True)
Expand Down Expand Up @@ -201,7 +201,7 @@ def connect_to_uri(self, db_uri: str, thread_count: Optional[int] = 1, **kwargs)
# snowflake connector can handle unquoted values, but data-diff cannot
# results in error if user or password is encoded
# https://github.com/datafold/data-diff/issues/428
kw = {k: urllib.parse.unqoute(v) for k, v in kw.items() if v is not None}
kw = {k: unquote(v) for k, v in kw.items() if v is not None}

if issubclass(cls, ThreadedDatabase):
db = cls(thread_count=thread_count, **kw, **kwargs)
Expand Down

0 comments on commit cbb56b3

Please sign in to comment.