Skip to content

Commit

Permalink
Check for existence of 'system' in meta before acc
Browse files Browse the repository at this point in the history
  • Loading branch information
eskerda committed May 17, 2014
1 parent 360e5c6 commit b849f0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gyro/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def syncStation(station_chunk, tag, resync = False):
statDoc.save()

def syncStations(system, resync = False, reschedule = False, proxify = False):
if proxify or system.meta['system'] in proxify_list:

if proxify or (
'system' in system.meta and system.meta['system'] in proxify_list
):
print "System in proxify list, proxifying!"
scraper.enableProxy()
try:
Expand Down

0 comments on commit b849f0e

Please sign in to comment.