mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
browser: log_worker_exception
This commit is contained in:
parent
3db1a7cf01
commit
9c30f62790
@ -12,7 +12,7 @@ from artiq.gui.tools import LayoutWidget, log_level_to_name, get_open_file_name
|
||||
from artiq.gui.entries import argty_to_entry
|
||||
from artiq.protocols import pyon
|
||||
from artiq.protocols.sync_struct import process_mod
|
||||
from artiq.master.worker import Worker
|
||||
from artiq.master.worker import Worker, log_worker_exception
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -297,10 +297,8 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
|
||||
expid=expid, priority=0)
|
||||
await worker.analyze()
|
||||
except:
|
||||
# May happen when experiment has been removed
|
||||
# from repository/explist
|
||||
logger.error("Failed to run '%s'",
|
||||
self.expurl, exc_info=True)
|
||||
logger.info("Failed to run '%s'", self.expurl)
|
||||
log_worker_exception()
|
||||
finally:
|
||||
await worker.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user