mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1928579 [invalide identifier with colon in search/replace](https://bugs.launchpad.net/calibre/+bug/1928579)
This commit is contained in:
parent
0ddbd506cc
commit
b8e186bc31
@ -1066,8 +1066,8 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
|
||||
val = ids
|
||||
else:
|
||||
try:
|
||||
val = dict([(t.split(':')) for t in val])
|
||||
except:
|
||||
val = dict(t.split(':', 1) for t in val)
|
||||
except Exception:
|
||||
raise Exception(_('Invalid identifier string. It must be a '
|
||||
'comma-separated list of pairs of '
|
||||
'strings separated by a colon'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user