2
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-19 21:25:30 +00:00

Fix for #2980 (invalid seriesindex causes no longer a crash)

This commit is contained in:
Ozzie Isaacs 2024-01-18 19:41:35 +01:00
parent 898e76fc37
commit b9c329535d

View File

@ -124,7 +124,7 @@ def formatseriesindex_filter(series_index):
return int(series_index)
else:
return series_index
except ValueError:
except (ValueError, TypeError):
return series_index
return 0