mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-28 19:43:51 -06:00
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:
parent
0a8d7a37b9
commit
ff87cf5544
@ -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)
|
||||
|
||||
##########################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user