Skip to content

Commit

Permalink
Fix an issue in PantherDB.__new__()
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRn76 committed Jan 28, 2024
1 parent 871faa2 commit 7e118dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pantherdb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pantherdb.pantherdb import * # noqa: F403

__version__ = '1.3.5'
__version__ = '1.3.6'


__all__ = ('__version__', 'PantherDB', 'PantherCollection', 'PantherDocument', 'PantherDBException')
4 changes: 2 additions & 2 deletions pantherdb/pantherdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def __new__(cls, *args, **kwargs):
return super().__new__(cls)

if args:
db_name = args[0]
db_name = args[0] or cls.db_name
elif 'db_name' in kwargs:
db_name = kwargs['db_name']
db_name = kwargs['db_name'] or cls.db_name
else:
db_name = cls.db_name

Expand Down

0 comments on commit 7e118dc

Please sign in to comment.