github demanded a manual merge
This commit is contained in:
parent
0d69ebb125
commit
14a968b499
|
@ -875,8 +875,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
except APIError as e:
|
except APIError as e:
|
||||||
return str(e)
|
return str(e)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
logger.critical(e)
|
||||||
print(sys.exc_info()[0])
|
logger.critical(sys.exc_info()[0])
|
||||||
return "API Error 0021: Unexpected API Failure - %s" % str(e)
|
return "API Error 0021: Unexpected API Failure - %s" % str(e)
|
||||||
|
|
||||||
# This thread, of which there is only one, runs the API.
|
# This thread, of which there is only one, runs the API.
|
||||||
|
@ -988,7 +988,6 @@ class Main:
|
||||||
def getApiAddress(self):
|
def getApiAddress(self):
|
||||||
if not shared.safeConfigGetBoolean('bitmessagesettings', 'apienabled'):
|
if not shared.safeConfigGetBoolean('bitmessagesettings', 'apienabled'):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
address = shared.config.get('bitmessagesettings', 'apiinterface')
|
address = shared.config.get('bitmessagesettings', 'apiinterface')
|
||||||
port = shared.config.getint('bitmessagesettings', 'apiport')
|
port = shared.config.getint('bitmessagesettings', 'apiport')
|
||||||
return {'address':address,'port':port}
|
return {'address':address,'port':port}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user