Skip to content

Commit

Permalink
fixed call to pathlib.Path.exists()
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Oct 11, 2023
1 parent bd456b8 commit 332f5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook_connector/secret_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def close(self) -> None:

def connection(self) -> sqlcipher.Connection:
if self._con is None:
db_file_found = pathlib.Path.exists(self.db_file)
db_file_found = self.db_file.exists()
if not db_file_found:
_logger.info(f"Creating file {self.db_file}")
self._con = sqlcipher.connect(self.db_file)
Expand Down

0 comments on commit 332f5fc

Please sign in to comment.