-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many useless warnings #167
Comments
I have the same problem. This is very annoying! Unfortunately, the development of this module does not seem super active... Go to the implementation of try:
offset, endian, fake_exif = _determine_type(fh)
except ExifNotFound as err:
logger.warning(err)
return {}
except InvalidExif as err:
logger.debug(err)
return {}
try:
offset, endian, fake_exif = _determine_type(fh)
except ExifNotFound as err:
if warnings:
logger.warning(err)
return {}
except InvalidExif as err:
logger.debug(err)
return {} and just add a def process_file(fh: BinaryIO, stop_tag=DEFAULT_STOP_TAG,
details=True, strict=False, debug=False,
truncate_tags=True, auto_seek=True, warnings=False): Now if you really need the warning, you can still set |
Without hacking the module, in your main code where you call exifread, try: |
I am opening many image file and see absolutely useless warning:
module version:
If image file does not have exif data we just get empty dict.
The text was updated successfully, but these errors were encountered: