mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
flake8: comply with new E722 rule
This commit is contained in:
@@ -105,7 +105,7 @@ class Schedule(CommonModel):
|
||||
if not isinstance(extra_data, dict):
|
||||
try:
|
||||
extra_data = json.loads(self.extra_data)
|
||||
except:
|
||||
except Exception:
|
||||
raise ValidationError(_("Expected JSON"))
|
||||
|
||||
if extra_data and 'days' in extra_data:
|
||||
|
||||
Reference in New Issue
Block a user