From 2883d8fa5d179fa21161910c31404879e1405260 Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Wed, 20 May 2020 10:45:39 +0200 Subject: [PATCH] Fix flake8 errors Signed-off-by: Ulysses Souza --- compose/cli/main.py | 2 +- compose/service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/cli/main.py b/compose/cli/main.py index e226a6008..250d06c90 100644 --- a/compose/cli/main.py +++ b/compose/cli/main.py @@ -1080,7 +1080,7 @@ class TopLevelCommand(object): log.error( "The image for the service you're trying to recreate has been removed. " "If you continue, volume data could be lost. Consider backing up your data " - "before continuing.\n".format(e.explanation) + "before continuing.\n" ) res = yesno("Continue with the new image? [yN]", False) if res is None or not res: diff --git a/compose/service.py b/compose/service.py index 92b2b3329..95a87d210 100644 --- a/compose/service.py +++ b/compose/service.py @@ -1157,7 +1157,7 @@ class Service(object): container_name = build_container_name( self.project, service_name, number, slug, ) - ext_links_origins = [l.split(':')[0] for l in self.options.get('external_links', [])] + ext_links_origins = [link.split(':')[0] for link in self.options.get('external_links', [])] if container_name in ext_links_origins: raise DependencyError( 'Service {0} has a self-referential external link: {1}'.format(