mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
Flake8 fixes.
This commit is contained in:
parent
5ed59a4c52
commit
41d05b0ae8
@ -1,7 +1,5 @@
|
||||
# Python
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import urlparse
|
||||
|
||||
# Django
|
||||
|
||||
@ -112,7 +112,7 @@ class Command(BaseCommand):
|
||||
if os.path.exists(license_file):
|
||||
try:
|
||||
raw_license_data = open(license_file).read()
|
||||
license_data = json.loads(raw_license_data)
|
||||
json.loads(raw_license_data)
|
||||
except Exception as e:
|
||||
raise CommandError('Error reading license from {0}: {1!r}'.format(license_file, e))
|
||||
if self.backup_suffix:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user