mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 18:13:58 +00:00
imageinfo.identify(): improve description about exceptions
This commit is contained in:
@@ -45,9 +45,11 @@ def identify(data):
|
||||
- mimetype
|
||||
- extension
|
||||
- data length
|
||||
It will raise 'IdentificationError' if:
|
||||
- not enough data (< 16 bytes)
|
||||
- format isn't recognized
|
||||
Exceptions:
|
||||
- `NotEnoughData` if data has less than 16 bytes.
|
||||
- `UnrecognizedFormat` if data isn't recognized as a known format.
|
||||
- `UnexpectedError` if unhandled cases (shouldn't happen).
|
||||
- `IdentificationError` is parent class for all preceding exceptions.
|
||||
"""
|
||||
|
||||
datalen = len(data)
|
||||
|
||||
Reference in New Issue
Block a user