fix #4084
This commit is contained in:
@@ -495,7 +495,7 @@ class DeviceMgr(ThreadJob, PrintError):
|
|||||||
if info.label == keystore.label:
|
if info.label == keystore.label:
|
||||||
return info
|
return info
|
||||||
msg = _("Please select which {} device to use:").format(plugin.device)
|
msg = _("Please select which {} device to use:").format(plugin.device)
|
||||||
descriptions = [info.label + ' (%s)'%(_("initialized") if info.initialized else _("wiped")) for info in infos]
|
descriptions = [str(info.label) + ' (%s)'%(_("initialized") if info.initialized else _("wiped")) for info in infos]
|
||||||
c = handler.query_choice(msg, descriptions)
|
c = handler.query_choice(msg, descriptions)
|
||||||
if c is None:
|
if c is None:
|
||||||
raise UserCancelled()
|
raise UserCancelled()
|
||||||
|
|||||||
Reference in New Issue
Block a user