Skip to content

Commit

Permalink
ignore stderr if stdout is present when running the submission
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinXPN committed Jul 15, 2021
1 parent a7d14ee commit c115760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hello_world/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def lambda_handler(event, context):
print('Test files:', input_file, output_file)

outs, errs = run_shell(f'cat {input_file} | {executable_path}', timeout=5, memory_limit_mb=512)
if errs:
if not outs and errs:
print('Errs:', errs)
is_correct = False
break
Expand Down

0 comments on commit c115760

Please sign in to comment.