Fix #1928579 [invalide identifier with colon in search/replace](https://bugs.launchpad.net/calibre/+bug/1928579)

This commit is contained in:
Kovid Goyal 2021-05-16 17:42:44 +05:30
parent 0ddbd506cc
commit b8e186bc31
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1066,8 +1066,8 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
val = ids val = ids
else: else:
try: try:
val = dict([(t.split(':')) for t in val]) val = dict(t.split(':', 1) for t in val)
except: except Exception:
raise Exception(_('Invalid identifier string. It must be a ' raise Exception(_('Invalid identifier string. It must be a '
'comma-separated list of pairs of ' 'comma-separated list of pairs of '
'strings separated by a colon')) 'strings separated by a colon'))