Skip to content

Commit abe4222

Browse files
authored
Merge pull request #283 from tjkuson/user-warning-fix
Change deprecation check
2 parents f9e45a7 + f40c889 commit abe4222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebooklib/epub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ def __init__(self, epub_file_name, options=None):
13951395
self._check_deprecated()
13961396

13971397
def _check_deprecated(self):
1398-
if not self.options.get('ignore_ncx'):
1398+
if self.options.get('ignore_ncx') is None:
13991399
warnings.warn('In the future version we will turn default option ignore_ncx to True.')
14001400

14011401
def process(self):

0 commit comments

Comments
 (0)