TypeError: __init__() got an unexpected keyword argument 'timeout'
I'm tring to send the Ğ1 of the month, but I get the following error using dev
branch :
Traceback (most recent call last):
File "./bin/silkaj", line 10, in <module>
manage_cmd(ep, cli_args)
File "/home/inso/code/silkaj/silkaj/silkaj.py", line 127, in manage_cmd
send_transaction(ep, cli_args)
File "/home/inso/code/silkaj/silkaj/tx.py", line 32, in send_transaction
generate_and_send_transaction(ep, seed, issuer_pubkey, amount, outputAddresses, comment, allSources, outputBackChange)
File "/home/inso/code/silkaj/silkaj/tx.py", line 125, in generate_and_send_transaction
post_request(ep, "tx/process", "transaction=" + urllib.parse.quote_plus(transaction))
File "/home/inso/code/silkaj/silkaj/network_tools.py", line 124, in post_request
request = urllib.request.Request(url, bytes(postdata, 'utf-8'), timeout=CONNECTION_TIMEOUT)
TypeError: __init__() got an unexpected keyword argument 'timeout'
Indeed, the Request
class does not have a timeout
parameter :
https://docs.python.org/3/library/urllib.request.html#urllib.request.Request