Correctly handle "values" in web/pgadmin/__init__.py -> strip_version_number which can be None in some cases and will cause exception when None

This commit is contained in:
Aditya Toshniwal 2018-08-16 09:23:58 +01:00 committed by Dave Page
parent 0a8d7a37b9
commit ff87cf5544

View File

@ -629,7 +629,7 @@ def create_app(app_name=None):
# required for cache busting only
@app.url_value_preprocessor
def strip_version_number(endpoint, values):
if (config.APP_VERSION_PARAM in values):
if values and config.APP_VERSION_PARAM in values:
values.pop(config.APP_VERSION_PARAM)
##########################################################################