Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 45d1c51

Browse files
v0.0.8
1 parent 15b3237 commit 45d1c51

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

quickmongo/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
By Science Spot from Decimal Developement
44
55
Simple wrapper for PyMongo written in python!
6-
v0.0.7
6+
v0.0.8
77
"""
88

9-
# v0.0.7
10-
__version__ ='0.0.7'
9+
# v0.0.8
10+
__version__ ='0.0.8'
1111

1212
# Import Time
1313
from time import time
@@ -60,7 +60,10 @@ def __init__(self, mongoURL: str, options: dict = {}, events: dict = {}):
6060
try:
6161
readyCallback(param)
6262
except TypeError:
63-
raise TypeError('ready callback function must have 1 parameter')
63+
try:
64+
readyCallback()
65+
except TypeError:
66+
raise TypeError('ready callback function must have 1 parameter')
6467

6568
def all_database_names(self):
6669
return self.base.client.list_database_names()

0 commit comments

Comments
 (0)