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

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_5_6
release_notes_5_5
release_notes_5_4
release_notes_5_3

View File

@ -0,0 +1,20 @@
************
Version 5.6
************
Release date: 2021-08-12
This release contains a number of bug fixes and new features since the release of pgAdmin4 5.5.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #6580 <https://redmine.postgresql.org/issues/6580>`_ - Fixed TypeError 'NoneType' object is not sub scriptable.

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()