From c93c55c2eb5964f1a04287f8222c14efd6667de5 Mon Sep 17 00:00:00 2001 From: vapao Date: Thu, 28 May 2020 15:45:42 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E9=A1=B5=E9=9D=A2=E5=8F=AF=E4=BB=A5=E5=BE=97?= =?UTF-8?q?=E5=88=B0=E6=9B=B4=E5=A4=9A=E9=94=99=E8=AF=AF=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/consumer/executors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spug_api/consumer/executors.py b/spug_api/consumer/executors.py index 6a52f6b..6143673 100644 --- a/spug_api/consumer/executors.py +++ b/spug_api/consumer/executors.py @@ -59,5 +59,8 @@ class Job: except socket.timeout: code = 130 self.send_error('### Time out') + except Exception as e: + code = 131 + self.send_error(f'{e}') finally: self.send_status(code)