Skip to content

Commit eec98b0

Browse files
committed
Call correct parent constructor in InterfaceWarning.__init__
Thanks to @s0undt3ch for catching this.
1 parent 50edd8c commit eec98b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncpg/exceptions/_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class InterfaceWarning(InterfaceMessage, UserWarning):
188188

189189
def __init__(self, msg, *, detail=None, hint=None):
190190
InterfaceMessage.__init__(self, detail=detail, hint=hint)
191-
Warning.__init__(self, msg)
191+
UserWarning.__init__(self, msg)
192192

193193

194194
class InternalClientError(Exception):

0 commit comments

Comments
 (0)