Merge pull request #2124 from ryanpetrello/for-shaaaaaaame

fix failing flake8
This commit is contained in:
Ryan Petrello
2018-06-11 15:38:03 -04:00
committed by GitHub

View File

@@ -39,7 +39,7 @@ class Command(BaseCommand):
while True:
try:
pongs = app.control.ping(['celery@{}'.format(socket.gethostname())])
except:
except Exception:
pongs = []
if len(pongs):
sys.stderr.write(str(pongs) + '\n')