MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / getAPIErrorCode

Function getAPIErrorCode

src/bitmessagecli.py:1227–1231  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

1225 main()
1226
1227def getAPIErrorCode(response):
1228 if "API Error" in response:
1229 # if we got an API error return the number by getting the number
1230 # after the second space and removing the trailing colon
1231 return int(response.split()[2][:-1])
1232
1233def markMessageRead(messageID):
1234 try:

Callers 5

listAddressBookEntriesFunction · 0.85
addAddressToAddressBookFunction · 0.85
markMessageReadFunction · 0.85
markMessageUnreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected