Skip to content

Commit 9cec438

Browse files
committed
remove debug
1 parent ba8aea9 commit 9cec438

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

pymongo/asynchronous/helpers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ async def inner(*args: Any, **kwargs: Any) -> Any:
4545
return await func(*args, **kwargs)
4646
except OperationFailure as exc:
4747
if no_reauth:
48-
print("failure with no reauth")
4948
raise
5049
if exc.code == _REAUTHENTICATION_REQUIRED_CODE:
5150
# Look for an argument that either is a AsyncConnection
5251
# or has a connection attribute, so we can trigger
5352
# a reauth.
54-
print("got reauth")
5553
conn = None
5654
for arg in args:
5755
if isinstance(arg, AsyncConnection):
@@ -61,10 +59,8 @@ async def inner(*args: Any, **kwargs: Any) -> Any:
6159
conn = arg.conn # type: ignore[assignment]
6260
break
6361
if conn:
64-
print("running reauth")
6562
await conn.authenticate(reauthenticate=True)
6663
else:
67-
print("not running reauth, no conn")
6864
raise
6965
return func(*args, **kwargs)
7066
raise

pymongo/synchronous/helpers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ def inner(*args: Any, **kwargs: Any) -> Any:
4545
return func(*args, **kwargs)
4646
except OperationFailure as exc:
4747
if no_reauth:
48-
print("failure with no reauth")
4948
raise
5049
if exc.code == _REAUTHENTICATION_REQUIRED_CODE:
5150
# Look for an argument that either is a Connection
5251
# or has a connection attribute, so we can trigger
5352
# a reauth.
54-
print("got reauth")
5553
conn = None
5654
for arg in args:
5755
if isinstance(arg, Connection):
@@ -61,10 +59,8 @@ def inner(*args: Any, **kwargs: Any) -> Any:
6159
conn = arg.conn # type: ignore[assignment]
6260
break
6361
if conn:
64-
print("running reauth")
6562
conn.authenticate(reauthenticate=True)
6663
else:
67-
print("not running reauth, no conn")
6864
raise
6965
return func(*args, **kwargs)
7066
raise

0 commit comments

Comments
 (0)