Skip to content

Commit aa1fe96

Browse files
author
Alexandru Stan
committed
fixed redundant import check
1 parent b4e7c66 commit aa1fe96

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

manager/ec2-check.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,7 @@
99
API_KEY = os.getenv("AI_QUERY_KEY")
1010
STORE_FILE = "instance_data"
1111

12-
try:
13-
import json
14-
except ImportError:
15-
try:
16-
import json
17-
except ImportError:
18-
print "Need access to a json module"
19-
sys.exit(1)
12+
import json
2013

2114
def get_ec2_instances():
2215
data = {}

0 commit comments

Comments
 (0)