From 91ea47a6f4a160e59ca2b8efd599ae88c2c48b39 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 18 Sep 2024 16:36:41 -0700 Subject: [PATCH] Update simulator.py --- etc/simulator.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/etc/simulator.py b/etc/simulator.py index da4c691..f603551 100644 --- a/etc/simulator.py +++ b/etc/simulator.py @@ -41,12 +41,11 @@ if __name__ == '__main__': # represents the bot's main loop projectResponse = "" responseLength = 0 if packet != "": - try: - projectResponse = globals()[projectName](nodeID, packet) # Call the project handler under test - except Exception as e: - logger.error(f"System: Handler: {e}") - projectResponse = "Error in handler" - # if responce has value get length + #try: + projectResponse = globals()[projectName](nodeID, packet) # Call the project handler under test + # except Exception as e: + # logger.error(f"System: Handler: {e}") + # projectResponse = "Error in handler" if projectResponse: responseLength = len(projectResponse) # Evaluate the response length logger.info(f"Device:{nodeInt} " + CustomFormatter.red + f"Sending {responseLength} long DM: " +\