Skip to content

Commit

Permalink
Fix capsule export in docker testing
Browse files Browse the repository at this point in the history
Found this by removing the blank try/except in the previous commit.
This only affects testing when python can't determine the correct
locale and falls back to ASCII.
  • Loading branch information
mvdbeek committed Oct 23, 2018
1 parent a465543 commit 57a4e50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tool_shed/util/xml_util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import io
import logging
import os
import sys
Expand Down Expand Up @@ -26,7 +27,7 @@ def create_and_write_tmp_file(elem):
fh = tempfile.NamedTemporaryFile(prefix="tmp-toolshed-cawrf", delete=False)
tmp_filename = fh.name
fh.close()
with open(tmp_filename, 'w') as fh:
with io.open(tmp_filename, mode='w', encoding='utf-8') as fh:
fh.write(tmp_str)
return tmp_filename

Expand Down

0 comments on commit 57a4e50

Please sign in to comment.