File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,11 @@ async def inner(*args: Any, **kwargs: Any) -> Any:
45
45
return await func (* args , ** kwargs )
46
46
except OperationFailure as exc :
47
47
if no_reauth :
48
- print ("failure with no reauth" )
49
48
raise
50
49
if exc .code == _REAUTHENTICATION_REQUIRED_CODE :
51
50
# Look for an argument that either is a AsyncConnection
52
51
# or has a connection attribute, so we can trigger
53
52
# a reauth.
54
- print ("got reauth" )
55
53
conn = None
56
54
for arg in args :
57
55
if isinstance (arg , AsyncConnection ):
@@ -61,10 +59,8 @@ async def inner(*args: Any, **kwargs: Any) -> Any:
61
59
conn = arg .conn # type: ignore[assignment]
62
60
break
63
61
if conn :
64
- print ("running reauth" )
65
62
await conn .authenticate (reauthenticate = True )
66
63
else :
67
- print ("not running reauth, no conn" )
68
64
raise
69
65
return func (* args , ** kwargs )
70
66
raise
Original file line number Diff line number Diff line change @@ -45,13 +45,11 @@ def inner(*args: Any, **kwargs: Any) -> Any:
45
45
return func (* args , ** kwargs )
46
46
except OperationFailure as exc :
47
47
if no_reauth :
48
- print ("failure with no reauth" )
49
48
raise
50
49
if exc .code == _REAUTHENTICATION_REQUIRED_CODE :
51
50
# Look for an argument that either is a Connection
52
51
# or has a connection attribute, so we can trigger
53
52
# a reauth.
54
- print ("got reauth" )
55
53
conn = None
56
54
for arg in args :
57
55
if isinstance (arg , Connection ):
@@ -61,10 +59,8 @@ def inner(*args: Any, **kwargs: Any) -> Any:
61
59
conn = arg .conn # type: ignore[assignment]
62
60
break
63
61
if conn :
64
- print ("running reauth" )
65
62
conn .authenticate (reauthenticate = True )
66
63
else :
67
- print ("not running reauth, no conn" )
68
64
raise
69
65
return func (* args , ** kwargs )
70
66
raise
You can’t perform that action at this time.
0 commit comments