-
Notifications
You must be signed in to change notification settings - Fork 308
Conversation
57ed62f
to
b41a763
Compare
From #2443 (comment) -
We don't seem to be doing anything about previous exchanges here - shouldn't we be linking all of them to the respective route(s)? |
postgres.py was throwing an error coz the column name received was '?column?' - and only alphanumeric/underscores were allowed in column names.
eb1e4c1
to
f758b8c
Compare
Rebased on master and added a couple of small commits. |
Is "Exchange Routes" a term we're exposing in the UI? Or is that just internal? |
Internal, as far as I've seen. |
Okay. I bring it up because "exchange" in a financial context often means "foreign exchange," so I'm not sure it's the best user-facing term to use. |
I guess I'm the only person who's reviewed this - It is a big change and probably deserves more eyeballs, but I'm merging this in coz it's a blocker. |
One thing I just noticed - we haven't modified |
Reticketed as #3295 |
@@ -1,3 +1,7 @@
+from __future__ import print_function
+
+import traceback
+
import balanced
from gratipay import wireup
@@ -56,8 +60,16 @@ with db.get_cursor() as cursor:
print("processing participant %i/%i" % (i, total))
customer = customer_from_href(p.balanced_customer_href)
if p.last_bill_result != None:
- card = customer.cards.one()
- insert_exchange_route(p.id, 'balanced-cc', card.href, p.last_bill_result)
+ try:
+ card = customer.cards.one()
+ insert_exchange_route(p.id, 'balanced-cc', card.href, p.last_bill_result)
+ except Exception as e:
+ print('cc', p.id, p.last_bill_result)
+ traceback.print_exc()
if p.last_ach_result != None:
- ba = customer.bank_accounts.one()
- insert_exchange_route(p.id, 'balanced-ba', ba.href, p.last_ach_result)
+ try:
+ ba = customer.bank_accounts.one()
+ insert_exchange_route(p.id, 'balanced-ba', ba.href, p.last_ach_result)
+ except Exception as e:
+ print('ba', p.id, p.last_ach_result)
+ traceback.print_exc() There were 54 exceptions, all |
Heroku deployment done. I'm going to run the second part of |
Final step: updated |
Closes #1681 and #2446. Unblocks #2824 and #3245.