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:
Roberto Rosario
2011-08-05 03:24:01 -04:00
parent eaea853391
commit cd0b1577a7
7 changed files with 25 additions and 25 deletions

View File

@@ -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