diff --git a/aws_xray_sdk/ext/sqlalchemy/query.py b/aws_xray_sdk/ext/sqlalchemy/query.py index d5c8ce20..b0dd5586 100644 --- a/aws_xray_sdk/ext/sqlalchemy/query.py +++ b/aws_xray_sdk/ext/sqlalchemy/query.py @@ -21,5 +21,12 @@ def __init__(self, bind=None, class_=XRaySession, autoflush=True, expire_on_commit=True, info=None, **kw): kw['query_cls'] = XRayQuery - super().__init__(bind, class_, autoflush, autocommit, expire_on_commit, - info, **kw) + super().__init__( + bind=bind, + class_=class_, + autoflush=autoflush, + autocommit=autocommit, + expire_on_commit=expire_on_commit, + info=info, + **kw + )