Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
Fix unicode issue for volume name
Browse files Browse the repository at this point in the history
  • Loading branch information
davelebbing committed May 16, 2019
1 parent 0fce97c commit d483ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Imagr/MainController.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ def runComponent_(self, item):
target_volume_string = 'Macintosh HD'

Utils.sendReport('in_progress', 'Erasing volume with name %s' % target_volume_string)
new_volume_name = str(item.get('name', target_volume_string).encode('utf8'))
new_volume_name = str(item.get('name', target_volume_string))
if new_volume_name != target_volume_string:
Utils.sendReport('in_progress', 'Volume will be renamed as: %s' % new_volume_name)
self.eraseTargetVolume(new_volume_name, item.get('format', 'Journaled HFS+'))
Expand Down

0 comments on commit d483ad3

Please sign in to comment.