handle format string exceptions separately

This commit is contained in:
Mike Fährmann
2017-08-11 21:48:37 +02:00
parent 3c9f190757
commit ae2d61e5b3
3 changed files with 23 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ Exception
| +-- NotFoundError
| +-- HttpError
+-- NoExtractorError
+-- FormatError
+-- StopExtraction
"""
@@ -50,5 +51,9 @@ class NoExtractorError(GalleryDLException):
"""No extractor can handle the given URL"""
class FormatError(GalleryDLException):
"""Error while building output path"""
class StopExtraction(GalleryDLException):
"""Extraction should stop"""