Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: retrieve exception of applet task before finishing other work.
Otherwise asyncio will print a very long backtrace corresponding to the applet task (without any useful information) if, most commonly, the device was surprise unplugged and all of the other tasks that need USB communication fail. After this commit, finally, this works as it should: $ glasgow run benchmark -c 1000000000 I: g.device.hardware: generating bitstream ID 6b120f4f94cf4ccd95c51417abc09069 I: g.cli: running handler for applet 'benchmark' I: g.applet.internal.benchmark: running benchmark mode source for 953.674 MiB E: g.cli: device disconnected
- Loading branch information