summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscrape_trucks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scrape_trucks.py b/scrape_trucks.py
index 99131a7..2ba1d20 100755
--- a/scrape_trucks.py
+++ b/scrape_trucks.py
@@ -65,11 +65,11 @@ def main(limit):
try:
if limit:
limited = limits[limit]
- try:
- for location in limited:
+ for location in limited:
+ try:
response['locations'][location] = locations[location]
- except KeyError:
- pass
+ except KeyError:
+ continue
else:
response['locations'] = locations
except: