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
commit ab4271b36d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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')