We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b4b269 commit de30a4bCopy full SHA for de30a4b
artiq/master/worker_impl.py
@@ -221,8 +221,13 @@ def main():
221
put_object({"action": "completed"})
222
elif action == "terminate":
223
break
224
- except:
225
- logging.error("Worker terminating with exception", exc_info=True)
+ except Exception as exc:
+ short_exc_info = type(exc).__name__
226
+ exc_str = str(exc)
227
+ if exc_str:
228
+ short_exc_info += ": " + exc_str
229
+ logging.error("Terminating with exception (%s)",
230
+ short_exc_info, exc_info=True)
231
finally:
232
device_mgr.close_devices()
233
0 commit comments