Renamed the exception UnknownFormat to UnkownFileFormat and updated all
backends get_page_count method to raise it, having the api's get_page_count function decide how to handle the exception
This commit is contained in:
@@ -5,17 +5,16 @@ class ConvertError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class UnknownFormat(ConvertError):
|
||||
class UnknownFileFormat(ConvertError):
|
||||
"""
|
||||
Raised when the converter backend can't understand or there
|
||||
isn't an appropiate driver available
|
||||
Raised when the converter backend can't understand a file
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class IdentifyError(ConvertError):
|
||||
"""
|
||||
Raised by identify
|
||||
Raised by the graphcismagick and imagemagics identify program
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user