Skip to content

Commit

Permalink
Fix write mode when writing screenshot files.
Browse files Browse the repository at this point in the history
Fixes #44
  • Loading branch information
leonjza committed Jan 10, 2018
1 parent 240182a commit ee740a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objection/commands/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def ios_screenshot(args: list = None) -> None:

image = response.get_extra_data()

with open(destination, 'w') as f:
with open(destination, 'wb') as f:
f.write(image)

click.secho('Screenshot saved to: {0}'.format(destination), fg='green')
Expand Down

0 comments on commit ee740a5

Please sign in to comment.