mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1163 (Traceback in Metadata from Filename testing.)
This commit is contained in:
parent
0e2c028a1c
commit
2bfeb4e610
@ -136,7 +136,7 @@ def metadata_from_filename(name, pat=None):
|
|||||||
try:
|
try:
|
||||||
si = match.group('series_index')
|
si = match.group('series_index')
|
||||||
mi.series_index = int(si)
|
mi.series_index = int(si)
|
||||||
except (IndexError, ValueError):
|
except (IndexError, ValueError, TypeError):
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
si = match.group('isbn')
|
si = match.group('isbn')
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
<item row="5" column="1" >
|
<item row="5" column="1" >
|
||||||
<widget class="QLineEdit" name="isbn" >
|
<widget class="QLineEdit" name="isbn" >
|
||||||
<property name="toolTip" >
|
<property name="toolTip" >
|
||||||
<string>Regular expression group name (?P<series_index>)</string>
|
<string>Regular expression group name (?P<isbn>)</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>No match</string>
|
<string>No match</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user