Skip to content

Commit

Permalink
Fixed failing build on PR#256
Browse files Browse the repository at this point in the history
Fixed failing build on PR#256. Google code-in task #1003
  • Loading branch information
Siva Neelakantan committed Jan 19, 2020
1 parent 4e0ca29 commit d61f216
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions evalai/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def result(ctx):
"""
display_submission_result(ctx.submission_id)


@submission.command()
@click.pass_obj
def stderr(ctx):
Expand All @@ -74,6 +75,7 @@ def stderr(ctx):
"""
display_submission_stderr(ctx.submission_id)


@click.command()
@click.argument("IMAGE", nargs=1)
@click.option(
Expand Down
4 changes: 3 additions & 1 deletion evalai/utils/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def display_submission_result(submission_id):
)
)


def display_submission_stderr(submission_id):
"""
Function to display stderr file of a particular submission in Terminal output
Expand All @@ -290,7 +291,7 @@ def display_submission_stderr(submission_id):
with open(file_url, "r") as fr:
try:
file_contents = fr.read()
print (file_contents)
print(file_contents)
fr.close()
except (OSError, IOError) as e:
echo(e)
Expand All @@ -303,6 +304,7 @@ def display_submission_stderr(submission_id):
)
)


def convert_bytes_to(byte, to, bsize=1024):
"""
Convert bytes to KB, MB, GB etc.
Expand Down

0 comments on commit d61f216

Please sign in to comment.