Skip to content

Commit

Permalink
Merge pull request #261 from QualiSystems/issue/#5264_command_generat…
Browse files Browse the repository at this point in the history
…e_error

AB#5264
  • Loading branch information
alexquali authored Jul 27, 2021
2 parents 5ff337e + 216467d commit a1a122a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
History
=======

1.2.19 (2021-07-27)
-------------------

* Fixed encoding issue

1.2.18 (2021-04-14)
-------------------

Expand Down
8 changes: 2 additions & 6 deletions shellfoundry/utilities/driver_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ def _generate_driver_data_model(
token = client.token
response = post(
url,
files={
path.basename(shell_filename): open(
package_full_path, "rb", encoding="utf8"
)
},
files={path.basename(shell_filename): open(package_full_path, "rb")},
headers={"Authorization": "Basic " + token},
)

Expand All @@ -90,7 +86,7 @@ def _generate_driver_data_model(
with TempDirContext(remove_dir_on_error=False, prefix=shell_name) as temp_dir:
generated_zip = path.join(temp_dir, shell_filename)
click.echo("Writing temporary file {0}".format(generated_zip))
with open(generated_zip, "wb", encoding="utf8") as driver_file:
with open(generated_zip, "wb") as driver_file:
driver_file.write(response.content)

click.echo("Extracting generated code at {0}".format(destination_path))
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.18
1.2.19

0 comments on commit a1a122a

Please sign in to comment.