raise exceptions instead of false return in blockimporter
This commit is contained in:
parent
3aeb305994
commit
07ab85698d
2 changed files with 6 additions and 2 deletions
|
@ -46,7 +46,7 @@ def accept_upload(request):
|
|||
post=True,
|
||||
is_json=True,
|
||||
postData={'block': b_hash}
|
||||
).get(timeout=5)
|
||||
).get(timeout=10)
|
||||
resp = 'success'
|
||||
else:
|
||||
resp = 'failure'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue