From b5ecc3adcae821140ae5a89ec021d8cceaf08998 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Thu, 4 Oct 2018 22:04:43 +0200 Subject: [PATCH] don't spam about spam if you wouldn't have spammed at all --- distbot/bot/action_worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distbot/bot/action_worker.py b/distbot/bot/action_worker.py index 3248f7f..1cb4ce1 100644 --- a/distbot/bot/action_worker.py +++ b/distbot/bot/action_worker.py @@ -113,7 +113,8 @@ class ActionThread(threading.Thread): else: self.schedule_action(action.event) except RuntimeError as e: - action.msg = "Warning: {}\nOriginal message: {}".format(e, action.msg) + if action.msg: + action.msg = "Warning: {}\nOriginal message: {}".format(e, action.msg) # indirect execution if action.command: -- 2.39.2