fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes
[wolnelektury.git]
/
src
/
club
/
payu
/
models.py
diff --git
a/src/club/payu/models.py
b/src/club/payu/models.py
index
1a49dd7
..
f7c3535
100644
(file)
--- a/
src/club/payu/models.py
+++ b/
src/club/payu/models.py
@@
-124,6
+124,8
@@
class Order(models.Model):
token.save()
# else?
+ if 'orderId' not in response:
+ raise ValueError("Expecting dict with `orderId` key, got: %s" % response)
self.order_id = response['orderId']
self.save()