Skip to content

Commit

Permalink
Fix db_name issue on PosixPath
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRn76 committed Dec 10, 2024
1 parent ddfaa3d commit 7e90ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pantherdb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from pantherdb.pantherdb import PantherDB, PantherCollection, PantherDocument, PantherDBException, Cursor

__version__ = '2.1.0'
__version__ = '2.1.1'
1 change: 1 addition & 0 deletions pantherdb/pantherdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __new__(cls, *args, **kwargs):
else:
db_name = cls.db_name

db_name = str(db_name) # Can be PosixPath
# Replace with .removesuffix('.pdb') after python3.8 compatible support
if db_name.endswith('.pdb'):
db_name = db_name[:-4]
Expand Down

0 comments on commit 7e90ef6

Please sign in to comment.