Fix ValueError for Python 2.6
This commit is contained in:
parent
e722b67f36
commit
450d14b4eb
@ -75,7 +75,7 @@ def create_backend_app(service):
|
|||||||
backend = BACKENDS[service]
|
backend = BACKENDS[service]
|
||||||
for url_path, handler in backend.flask_paths.items():
|
for url_path, handler in backend.flask_paths.items():
|
||||||
if handler.__name__ == 'dispatch':
|
if handler.__name__ == 'dispatch':
|
||||||
endpoint = '{}.dispatch'.format(handler.__self__.__name__)
|
endpoint = '{0}.dispatch'.format(handler.__self__.__name__)
|
||||||
else:
|
else:
|
||||||
endpoint = None
|
endpoint = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user