Skip to content

Commit d3c503f

Browse files
committed
Improve
1 parent 9938542 commit d3c503f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎bin/continents.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
2-
# Get continent data including bounding boxes and centroids for and store it
3-
# in json file keyed by continentCode.
2+
# Get continent data including bounding boxes and centroids and store it
3+
# in JSON file keyed by continentCode.
44
import json
55
import os
66
import sys
@@ -19,8 +19,7 @@
1919

2020
def account_ok(j):
2121
if j.get('status', {}).get('value') == ACCOUNT_ERR_CODE:
22-
print(j['status']['message'])
23-
sys.exit(1)
22+
sys.exit((j['status']['message']))
2423

2524

2625
for geoid in continent_ids:

0 commit comments

Comments
 (0)