mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
de6f437f1a
commit
8b96ea0698
@ -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]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user