mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 09:23:14 +02: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
1 changed files with 2 additions and 2 deletions
|
|
@ -1066,8 +1066,8 @@ def do_search_replace(self, book_id):
|
|||
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…
Reference in a new issue