Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions easygui/boxes/choice_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def make_list_or_none(obj, cast_type=None):
if cast_type is not None:
try:
ret_val = cast_type(obj)
except Exception, e:
raise Exception("Value {} cannot be converted to type: {}".format(obj, cast_type))
except Exception as e:
raise Exception("Value {} cannot be converted to type: {}".format(obj, cast_type)) from e
ret_val = [ret_val,]
# Convert all elements to cast_type
if cast_type is not None:
Expand Down
2 changes: 1 addition & 1 deletion mc2tex.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def convert(inpath, outpath):
outfile.write(tex_intro)

for l in outlines:
outfile.write(l.encode("utf8"))
outfile.write(l)

outfile.write(tex_outro)

Expand Down