Skip to content

Commit

Permalink
code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Parmita Mehta authored and Parmita Mehta committed Jul 18, 2017
1 parent 6417604 commit 1ba0ae2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/MyriaPythonWorker.py
Expand Up @@ -125,8 +125,9 @@ def write_with_length(cls, obj, stream, output_type):
cls.write_int(DataType.BLOB, stream)
cls.pickle_and_write(obj, stream)
elif output_type == DataType.EXCEPTION:
assert type(obj) is str
cls.write_int(len(obj), stream)
stream.write(str(obj))
stream.write(obj)

@classmethod
def read_command(cls, stream):
Expand Down

0 comments on commit 1ba0ae2

Please sign in to comment.