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]
|
||||
for url_path, handler in backend.flask_paths.items():
|
||||
if handler.__name__ == 'dispatch':
|
||||
endpoint = '{}.dispatch'.format(handler.__self__.__name__)
|
||||
endpoint = '{0}.dispatch'.format(handler.__self__.__name__)
|
||||
else:
|
||||
endpoint = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user