flake8: comply with new E722 rule

This commit is contained in:
AlanCoding
2017-10-23 13:57:12 -04:00
committed by Ryan Petrello
parent 7538b4ce15
commit 67867cf0c8
17 changed files with 30 additions and 30 deletions

View File

@@ -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: