There was an error while loading. Please reload this page.
1 parent 9938542 commit d3c503fCopy full SHA for d3c503f
1 file changed
bin/continents.py
@@ -1,6 +1,6 @@
1
#!/usr/bin/env python
2
-# Get continent data including bounding boxes and centroids for and store it
3
-# in json file keyed by continentCode.
+# Get continent data including bounding boxes and centroids and store it
+# in JSON file keyed by continentCode.
4
import json
5
import os
6
import sys
@@ -19,8 +19,7 @@
19
20
def account_ok(j):
21
if j.get('status', {}).get('value') == ACCOUNT_ERR_CODE:
22
- print(j['status']['message'])
23
- sys.exit(1)
+ sys.exit((j['status']['message']))
24
25
26
for geoid in continent_ids:
0 commit comments