Fix for crash on extension blueprints loading
It the extension was registered with url_prefix=None, we set url_prefix to empty string so it can be added to blueprint.url_prefix.
This commit is contained in:
parent
26f8a3fec7
commit
8934eb8b8d
@ -206,6 +206,9 @@ class PillarServer(Eve):
|
|||||||
# Load extension blueprint(s)
|
# Load extension blueprint(s)
|
||||||
for blueprint in pillar_extension.blueprints():
|
for blueprint in pillar_extension.blueprints():
|
||||||
if blueprint.url_prefix:
|
if blueprint.url_prefix:
|
||||||
|
if not url_prefix:
|
||||||
|
# If we registered the extension with url_prefix=None
|
||||||
|
url_prefix = ''
|
||||||
blueprint_prefix = url_prefix + blueprint.url_prefix
|
blueprint_prefix = url_prefix + blueprint.url_prefix
|
||||||
else:
|
else:
|
||||||
blueprint_prefix = url_prefix
|
blueprint_prefix = url_prefix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user