storage: Fix incorrect i18n when throwing and error

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-08-02 14:26:32 -07:00 committed by James Valleroy
parent de6f437f1a
commit 8b96ea0698
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -258,8 +258,7 @@ def eject_drive_of_device(device_path):
if not found_objects: if not found_objects:
raise ValueError( raise ValueError(
_('No such device - {device_path}').format( 'No such device - {device_path}'.format(device_path=device_path))
device_path=device_path))
obj = found_objects[0] obj = found_objects[0]