Skip to content

Commit

Permalink
Force string argument to sqlite3.connect().
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed May 15, 2022
1 parent de093a2 commit 426f873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler_gym/wrappers/sqlite_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(
if not isinstance(self.unwrapped, LlvmEnv):
raise TypeError("Requires LlvmEnv base environment")
db_path.parent.mkdir(exist_ok=True, parents=True)
self.connection = sqlite3.connect(db_path)
self.connection = sqlite3.connect(str(db_path))
self.cursor = self.connection.cursor()
self.commit_frequency = commit_frequency_in_seconds
self.max_step_buffer_length = max_step_buffer_length
Expand Down

0 comments on commit 426f873

Please sign in to comment.