get rid of catch-all for key errors

workspace
Brendan Howell 8 years ago
parent e246fb92a6
commit 2a5d40498e

@ -357,15 +357,6 @@ class Bureau(object):
ret = ""
ret = "0" + 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:
self.log.warning("error! Command/API %s not found", ref)
self._recv.send_unicode("Error! Command/API not found.")

Loading…
Cancel
Save