mirror of https://github.com/openspug/spug
U 优化批量执行页面可以得到更多错误反馈
parent
41dc95ad4d
commit
c93c55c2eb
|
@ -59,5 +59,8 @@ class Job:
|
||||||
except socket.timeout:
|
except socket.timeout:
|
||||||
code = 130
|
code = 130
|
||||||
self.send_error('### Time out')
|
self.send_error('### Time out')
|
||||||
|
except Exception as e:
|
||||||
|
code = 131
|
||||||
|
self.send_error(f'{e}')
|
||||||
finally:
|
finally:
|
||||||
self.send_status(code)
|
self.send_status(code)
|
||||||
|
|
Loading…
Reference in New Issue