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