Skip to content

Commit c7371c0

Browse files
committed
Always print something to stdout.
1 parent ed72116 commit c7371c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dmoj/executors/autoconfig.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,14 @@ def main():
9393
if result:
9494
if not args.silent and sys.stdout.isatty():
9595
print(ansi_style('#ansi[Configuration result](green|bold|underline):'), file=sys.stderr)
96-
print(yaml.safe_dump({'runtime': result}, default_flow_style=False).rstrip())
9796
else:
9897
print(ansi_style('#ansi[No runtimes configured.](red|bold)'), file=sys.__stderr__)
9998
if not args.verbose:
10099
print(ansi_style('Run #ansi[%s -V](|underline) to see why this is the case.') % (parser.prog,),
101100
file=sys.__stderr__)
102101

102+
print(yaml.safe_dump({'runtime': result}, default_flow_style=False).rstrip())
103+
103104

104105
if __name__ == '__main__':
105106
main()

0 commit comments

Comments
 (0)