When the parameter name = 'lens_specification' of getattr or hasattr, an error must be reported ZeroDivisionError: division by zero
Hello, I encountered a problem when using exif, which could not be solved. can u help me ? Thanks.
Windows 10 LTSC 1809 17763.1457 Python 3.7.6 exif 1.0.1 plum-py 0.3.1
When the parameter name = 'lens_specification' of getattr or hasattr, an error must be reported ZeroDivisionError: division by zero
lens_specification <class 'str'> Traceback (most recent call last): File "exif_demo1.py", line 74, in main() File "exif_demo1.py", line 18, in main d = exif_get_attrs_value(image, image_attrs) File "exif_demo1.py", line 68, in exif_get_attrs_value value = getattr(image, str(attr), None) File "D:\Python\xuexi\venv\lib\site-packages\exif_image.py", line 86, in getattr return getattr(self._segments['APP1'], item) File "D:\Python\xuexi\venv\lib\site-packages\exif_app1_metadata.py", line 405, in getattr return ifd_tag.read() File "D:\Python\xuexi\venv\lib\site-packages\exif\ifd_tag_rational.py", line 75, in read retvals.append(rational_view.numerator / rational_view.denominator) File "D:\Python\xuexi\venv\lib\site-packages\plum_plumview.py", line 275, in truediv return self.get() / other File "D:\Python\xuexi\venv\lib\site-packages\plum_plumview.py", line 269, in rtruediv return other / self.get() ZeroDivisionError: division by zero