From 1aaf12b6f3f9920971854daeffcf39b27611b9ce Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Thu, 25 Oct 2018 14:36:26 -0400 Subject: [PATCH] exception handling for osc.send --- OscMacroDefinitions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OscMacroDefinitions.py b/OscMacroDefinitions.py index e8d775c..bf9dfc6 100644 --- a/OscMacroDefinitions.py +++ b/OscMacroDefinitions.py @@ -57,7 +57,10 @@ class HogDevice(): logger.error("ERROR: Net# " + str(device.number.value) + " not found.") return - osc.send(msg) + try: + osc.send(msg) + except Exception as e: + logger.error(e) def _master_go(self, ctx): if ctx.number is not None: