@@ -67,7 +67,7 @@ class ApschedulerObjectTest:
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind(('127.0.0.1', 12345))
- except socket.error:
+ except Exception:
pass
else:
# 计算时区偏移量(以分钟为单位)