diff --git a/.deploy/deploy-prod.yaml b/.deploy/deploy-prod.yaml index e8432f1..d4fe2b4 100644 --- a/.deploy/deploy-prod.yaml +++ b/.deploy/deploy-prod.yaml @@ -9,7 +9,6 @@ services: MONGO_HOST: "mongo.sprinthub.ru" MONGO_PASSWORD: $MONGO_PASSWORD_PROD STAGE: "production" - PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN networks: - queues - configurator diff --git a/daemons/worker.py b/daemons/worker.py index 6933645..8c09bb7 100644 --- a/daemons/worker.py +++ b/daemons/worker.py @@ -118,6 +118,8 @@ class Daemon(base.BaseDaemon, queues.TasksHandlerMixin): set_values(message.chat.id, state="set_probability") def process(self, payload): + if not message.text: + return message: Message = Message.de_json(json.dumps(payload)) if message.text.startswith('/'): self.process_command(message)