Scrollbar visibility when needed
Exception handling in ePub book year
This commit is contained in:
@@ -127,7 +127,7 @@ class EPUB:
|
||||
|
||||
try:
|
||||
self.book['year'] = int(self.book['year'][:4])
|
||||
except (TypeError, KeyError, IndexError):
|
||||
except (TypeError, KeyError, IndexError, ValueError):
|
||||
self.book['year'] = 9999
|
||||
|
||||
# Get identifier
|
||||
|
@@ -100,7 +100,7 @@ class Tab(QtWidgets.QWidget):
|
||||
self.contentView.setObjectName('contentView')
|
||||
self.contentView.verticalScrollBar().setSingleStep(7)
|
||||
self.contentView.setHorizontalScrollBarPolicy(
|
||||
QtCore.Qt.ScrollBarAlwaysOff)
|
||||
QtCore.Qt.ScrollBarAsNeeded)
|
||||
|
||||
# See bookmark availability
|
||||
if not self.metadata['bookmarks']:
|
||||
|
Reference in New Issue
Block a user