Skip to content

Commit b831f93

Browse files
authored
[benchmark] BenchmarkDoctor: Optional markdown arg
Don't require the presence of `markdown` argument for initialization. (It doesn't exist when BenchmarkDoctor is used from `run_smoke_bench`.)
1 parent 46f94d7 commit b831f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/scripts/Benchmark_Driver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class BenchmarkDoctor(object):
331331
self.driver = driver or BenchmarkDriver(args)
332332
self.results = {}
333333

334-
if args.markdown:
334+
if hasattr(args, 'markdown') and args.markdown:
335335
self.console_handler = MarkdownReportHandler(sys.stdout)
336336
else:
337337
self.console_handler = logging.StreamHandler(sys.stdout)

0 commit comments

Comments
 (0)