You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bitmessagecli crashes when trying to send and you have no own addresses #877
python2 bitmessagecli.py
send
M
BM-[some-address]
//error
Would you like to send a (M)essage or (B)roadcast?
> M
What is the To Address?
> BM-[some-address]
Using the only address in the addressbook to send from.
Traceback (most recent call last):
File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1778, in <module>
main()
File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1773, in main
UI((raw_input('>').lower()).replace(" ", ""))
File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1348, in UI
main()
File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1773, in main
UI((raw_input('>').lower()).replace(" ", ""))
File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1492, in UI
sendMsg(null,null,null,null)
File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 807, in sendMsg
fromAddress = jsonAddresses['addresses'][0]['address']
IndexError: list index out of range
changed the title [-]bitmessagecli does not send messages (with an error)[/-][+]bitmessagecli crashes when trying to send and you have no own addresses.[/+]on Mar 1, 2017
changed the title [-]bitmessagecli crashes when trying to send and you have no own addresses.[/-][+]bitmessagecli crashes when trying to send and you have no own addresses[/+]on Mar 1, 2017
Activity
Musickiller commentedon Jul 13, 2016
Woops... I have not generated an address. I guess you should add some check for that. =)
[-]bitmessagecli does not send messages (with an error)[/-][+]bitmessagecli crashes when trying to send and you have no own addresses.[/+][-]bitmessagecli crashes when trying to send and you have no own addresses.[/-][+]bitmessagecli crashes when trying to send and you have no own addresses[/+]Lvl4Sword commentedon Jun 26, 2017
This is fixed in https://github.com/Lvl4Sword/PyBitmessage-CLI/blob/master/bitmessagecli.py
My CLI has very minor bugs, but should be production ready.
Protip: This CLI is designed to replace the current one. So if you get an OSError, you didn't replace it 😃