forked from LBRYCommunity/lbry-sdk
add treq as a dependency + pep8
This commit is contained in:
parent
c90140f701
commit
3ee0f9756d
4 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,6 @@ import os
|
|||
import platform
|
||||
import shutil
|
||||
import sys
|
||||
import random
|
||||
import unittest
|
||||
|
||||
from hashlib import md5
|
||||
|
|
|
@ -148,7 +148,8 @@ class PointTraderKeyQueryHandler(object):
|
|||
try:
|
||||
decode_rsa_key(new_encoded_pub_key)
|
||||
except (ValueError, TypeError, IndexError):
|
||||
return defer.fail(Failure(ValueError("Client sent an invalid public key: {}".format(new_encoded_pub_key))))
|
||||
value_error = ValueError("Client sent an invalid public key: {}".format(new_encoded_pub_key))
|
||||
return defer.fail(Failure(value_error))
|
||||
self.public_key = new_encoded_pub_key
|
||||
self.wallet.set_public_key_for_peer(self.peer, self.public_key)
|
||||
fields = {'public_key': self.wallet.encoded_public_key}
|
||||
|
|
|
@ -26,3 +26,4 @@ slowaes==0.1a1
|
|||
txJSON-RPC==0.5
|
||||
wsgiref==0.1.2
|
||||
zope.interface==4.3.3
|
||||
treq==17.8.0
|
||||
|
|
1
setup.py
1
setup.py
|
@ -27,6 +27,7 @@ requires = [
|
|||
'requests',
|
||||
'txJSON-RPC',
|
||||
'zope.interface',
|
||||
'treq',
|
||||
'docopt'
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in a new issue