Fixed TypeError 'NoneType' object is not sub scriptable. Fixes #6580

This commit is contained in:
Rahul Shirsat
2021-07-15 17:46:31 +05:30
committed by Akshay Joshi
parent 69d0fbe419
commit 9e8af67202
3 changed files with 24 additions and 3 deletions

View File

@@ -681,15 +681,15 @@ def create_app(app_name=None):
from pgadmin.utils.driver import get_driver
from flask import current_app
# remove key
current_app.keyManager.reset()
for mdl in current_app.logout_hooks:
try:
mdl.on_logout(user)
except Exception as e:
current_app.logger.exception(e)
# remove key
current_app.keyManager.reset()
_driver = get_driver(PG_DEFAULT_DRIVER)
_driver.gc_own()