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