Skip to content

Commit

Permalink
fix(duckdb): cast read_only to string for connection
Browse files Browse the repository at this point in the history
  • Loading branch information
lostmygithubaccount authored and cpcloud committed Jul 21, 2023
1 parent 8b33b35 commit 27e17d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/duckdb/__init__.py
Expand Up @@ -81,7 +81,7 @@ def current_database(self) -> str:

@staticmethod
def _convert_kwargs(kwargs: MutableMapping) -> None:
read_only = kwargs.pop("read_only", "False").capitalize()
read_only = str(kwargs.pop("read_only", "False")).capitalize()
try:
kwargs["read_only"] = ast.literal_eval(read_only)
except ValueError as e:
Expand Down

0 comments on commit 27e17d6

Please sign in to comment.