Fix reference to non-existent variable.
This commit is contained in:
parent
089a1a5976
commit
6b24bf32e4
@ -1481,8 +1481,8 @@ def mount_cb(device, callback, data=None, rw=False, mtype=None, sync=True):
|
||||
device, mtype, exc)
|
||||
pass
|
||||
if not mountpoint:
|
||||
raise MountFailedError("Failed mounting %s to %s due to: %s" %
|
||||
(device, tmpd, exc))
|
||||
raise MountFailedError(
|
||||
"Failed mounting %s to %s".format(device, tmpd))
|
||||
|
||||
# Be nice and ensure it ends with a slash
|
||||
if not mountpoint.endswith("/"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user