|
|
@ -357,15 +357,6 @@ class Bureau(object):
|
|
|
|
ret = ""
|
|
|
|
ret = ""
|
|
|
|
ret = "0" + ret
|
|
|
|
ret = "0" + ret
|
|
|
|
self._recv.send_string(ret)
|
|
|
|
self._recv.send_string(ret)
|
|
|
|
#except TypeError as err:
|
|
|
|
|
|
|
|
# print(err)
|
|
|
|
|
|
|
|
# print("invalid data for command '{}': {}".format(ref, data))
|
|
|
|
|
|
|
|
# self._recv.send_unicode("Error. Invalid or missing data.")
|
|
|
|
|
|
|
|
except KeyError as err:
|
|
|
|
|
|
|
|
self.log.warning(str(err))
|
|
|
|
|
|
|
|
self.log.warning("You are calling a command as an API or vice-versa.")
|
|
|
|
|
|
|
|
self._recv.send_unicode(
|
|
|
|
|
|
|
|
"Error. Command called as API or API as command.")
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.log.warning("error! Command/API %s not found", ref)
|
|
|
|
self.log.warning("error! Command/API %s not found", ref)
|
|
|
|
self._recv.send_unicode("Error! Command/API not found.")
|
|
|
|
self._recv.send_unicode("Error! Command/API not found.")
|
|
|
|