Skip to content

Commit

Permalink
Set http_timeout prior to get_session_id (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-pomelo authored Dec 4, 2023
1 parent 77e37b0 commit 88ddbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbtmetabase/metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def __init__(
exclude_sources {bool} -- Exclude exporting sources. (default: {False})
"""
self.base_url = f"{'http' if use_http else 'https'}://{host}"
self.http_timeout = http_timeout
self.session = requests.Session()
self.session.verify = verify
self.session.cert = cert
Expand All @@ -166,7 +167,6 @@ def __init__(
self.table_map: MutableMapping = {}
self.models_exposed: List = []
self.native_query: str = ""
self.http_timeout = http_timeout
# This regex is looking for from and join clauses, and extracting the table part.
# It won't recognize some valid sql table references, such as `from "table with spaces"`.
self.exposure_parser = re.compile(r"[FfJj][RrOo][OoIi][MmNn]\s+([\w.\"]+)")
Expand Down

0 comments on commit 88ddbde

Please sign in to comment.