Split this line up for length reasons.

This commit is contained in:
Ethan Dalool 2020-02-02 19:36:57 -08:00
parent dcfb2edf85
commit dfb3e9e6ed

View file

@ -359,7 +359,8 @@ class Epub:
for item in self.get_manifest_items(soup=True):
filepath = self.get_filepath(item['id'])
if not filepath.exists:
raise InvalidEpub(self._original_path, f'Manifest item {item["id"]} = {item["href"]} does not exist.')
message = f'Manifest item {item["id"]} = {item["href"]} does not exist.'
raise InvalidEpub(self.original_path, message)
# LOADING AND SAVING
############################################################################