Skip to content

Commit

Permalink
add try for the farmer
Browse files Browse the repository at this point in the history
  • Loading branch information
pyw committed Jul 16, 2012
1 parent 5bc115b commit 4da078e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/dough-farmer
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ if __name__ == '__main__':
print "item_name=", item_name

action = getattr(api, status)
action(context, subscription_id, tenant_id, resource_uuid,
try:
action(context, subscription_id, tenant_id, resource_uuid,
created_at, updated_at, expires_at, order_unit,
order_size, price, currency, region_name,
item_name, interval_unit, interval_size, is_prepaid)

except Exception, e:
print e, subscription_id, item_name
time.sleep(60 * 5)

0 comments on commit 4da078e

Please sign in to comment.