diff --git a/artiq/coredevice/core.py b/artiq/coredevice/core.py index 0cf49b27c..3705e5155 100644 --- a/artiq/coredevice/core.py +++ b/artiq/coredevice/core.py @@ -19,7 +19,7 @@ from artiq.coredevice import exceptions def _render_diagnostic(diagnostic, colored): def shorten_path(path): return path.replace(artiq_dir, "") - lines = [shorten_path(path) for path in diagnostic.render(colored)] + lines = [shorten_path(path) for path in diagnostic.render(colored=colored)] return "\n".join(lines) class _DiagnosticEngine(diagnostic.Engine):