From fa22d55896f3f8eaba39fc5862f7f517f1974da8 Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Sat, 5 Sep 2020 22:46:19 +0100 Subject: [PATCH] updates --- komrade/backend/switchboard.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/komrade/backend/switchboard.py b/komrade/backend/switchboard.py index da0ef4c..541d2b3 100644 --- a/komrade/backend/switchboard.py +++ b/komrade/backend/switchboard.py @@ -81,10 +81,6 @@ class TheSwitchboard(FlaskView, Logger): @route('/please/') def please(self,encr_b64_str=None): - return 'hello?' - raise Exception(encr_b64_str) - # return encr_b64_str - # first try to get from string to bytes self.log('incoming <--',encr_b64_str) @@ -93,10 +89,10 @@ class TheSwitchboard(FlaskView, Logger): self.log('encr_b64_b',encr_b64_b) encr_b = b64decode(encr_b64_b) self.log('encr_b',encr_b) + return 'successfully understood input' except (UnicodeDecodeError,binascii.Error) as e: return OPERATOR_INTERCEPT_MESSAGE - return 'hello???' if not encr_b64_str: return OPERATOR_INTERCEPT_MESSAGE