Skip to content

Commit

Permalink
Fix bug in gradelib
Browse files Browse the repository at this point in the history
  • Loading branch information
anishathalye committed Sep 18, 2019
1 parent feca1f4 commit 6f60248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradelib.py
Expand Up @@ -574,7 +574,7 @@ class context:
def handle_output(output):
context.buf.extend(output)
if terminate_match is not None:
if re.match(terminate_match, context.buf.decode('utf-8')):
if re.match(terminate_match, context.buf.decode('utf-8', 'replace')):
raise TerminateTest
if b'$ ' in context.buf:
context.buf = bytearray()
Expand Down

0 comments on commit 6f60248

Please sign in to comment.