Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The NoResultFound should be the one in balanced rather than wac #111

Open
fangpenlin opened this issue Apr 21, 2014 · 0 comments
Open

The NoResultFound should be the one in balanced rather than wac #111

fangpenlin opened this issue Apr 21, 2014 · 0 comments

Comments

@fangpenlin
Copy link
Contributor

I noticed that the NoResultFound raised was the one from balanced in revision 1.0 client. However, it appears that becomes the one from wac in revision 1.1.

2014-04-21 11:31:52,489 ERROR [billy.models.base][Dummy-3] Failed to process transaction TX7SpmonpnuYoDt4JF1Yetsq, failure_count=1
Traceback (most recent call last):
  File "/Users/VictorLin/Documents/workspace/billy/billy/models/transaction.py", line 316, in process_one
    result = method(transaction)
  File "/Users/VictorLin/Documents/workspace/billy/billy/models/processors/balanced_payments.py", line 49, in callee
    return func(self, *args, **kwargs)
  File "/Users/VictorLin/Documents/workspace/billy/billy/models/processors/balanced_payments.py", line 333, in debit
    extra_kwargs=extra_kwargs,
  File "/Users/VictorLin/Documents/workspace/billy/billy/models/processors/balanced_payments.py", line 286, in _do_transaction
    record = self._get_resource_by_tx_guid(resource_cls, transaction.guid)
  File "/Users/VictorLin/Documents/workspace/billy/billy/models/processors/balanced_payments.py", line 254, in _get_resource_by_tx_guid
    .filter(**{'meta.billy.transaction_guid': guid})
  File "/Users/VictorLin/Documents/workspace/billy/env/lib/python2.7/site-packages/wac.py", line 788, in one
    raise NoResultFound()
NoResultFound

IMHO, that should be the one from balanced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant