fix: update

This commit is contained in:
2023-10-17 11:00:15 +08:00
parent 5b975a463d
commit c93308391a
3 changed files with 4 additions and 3 deletions

View File

@@ -33,8 +33,10 @@ class Task(socketserver.BaseRequestHandler):
C0, C1, C2, C3, C4, C5, C6 = chests
r = eval(expr)
except Exception as e:
self.send(b"Shannon fails to understand your words.\n")
self.send(e)
self.send(b"Shannon fails to understand your words.\n")
print(f"Exception: {e}") # Debug print
print(f"Failed expression: {expr}") # Debug print
exit(0)
return ans(r)