Skip to content

Commit

Permalink
executors: fix returning str instead of bytes from `get_compile_o…
Browse files Browse the repository at this point in the history
…utput`
  • Loading branch information
Xyene authored and quantum5 committed Nov 2, 2021
1 parent d3c2950 commit 0aa6948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dmoj/executors/CBL.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def get_compile_output(self, process):
for prefix in (b'Error:', b'Note:', b'Warning:'):
if prefix in output or prefix.lower() in output:
return output
return ''
return b''
2 changes: 1 addition & 1 deletion dmoj/executors/PAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_compile_args(self):

def get_compile_output(self, process):
output = super().get_compile_output(process)
return output if b'Fatal:' in output or b'Warning:' in output or b'Note:' in output else ''
return output if b'Fatal:' in output or b'Warning:' in output or b'Note:' in output else b''

@classmethod
def get_version_flags(cls, command):
Expand Down

0 comments on commit 0aa6948

Please sign in to comment.