mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -03:30
Fix new flake8 from pyflakes 2.2.0 release
This commit is contained in:
@@ -91,7 +91,7 @@ class CallbackBrokerWorker(BaseWorker):
|
||||
for e in events:
|
||||
try:
|
||||
if (
|
||||
isinstance(exc, IntegrityError),
|
||||
isinstance(exc, IntegrityError) and
|
||||
getattr(e, 'host_id', '')
|
||||
):
|
||||
# this is one potential IntegrityError we can
|
||||
|
||||
Reference in New Issue
Block a user