Skip to content

Commit

Permalink
close session
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jul 5, 2024
1 parent 133e457 commit 4d1ef80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agixt/MagicalAuth.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ def get_user_preferences(self):
.all()
)
user_preferences = {x.pref_key: x.pref_value for x in user_preferences}
session.close()
user_requirements = self.registration_requirements()
if not user_preferences:
return {}
Expand All @@ -595,7 +596,6 @@ def get_user_preferences(self):
"customer_session": c_session,
},
)
session.close()
if "email" in user_preferences:
del user_preferences["email"]
if "first_name" in user_preferences:
Expand Down

0 comments on commit 4d1ef80

Please sign in to comment.