mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +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:
|
||||
raise ValueError(
|
||||
_('No such device - {device_path}').format(
|
||||
device_path=device_path))
|
||||
'No such device - {device_path}'.format(device_path=device_path))
|
||||
|
||||
obj = found_objects[0]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user