File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -487,18 +487,13 @@ def _read_dpi_from_exif(self) -> None:
487
487
dpi *= 2.54
488
488
self .info ["dpi" ] = dpi , dpi
489
489
except (
490
- struct .error ,
491
- KeyError ,
492
- SyntaxError ,
493
- TypeError ,
494
- ValueError ,
495
- ZeroDivisionError ,
490
+ struct .error , # truncated EXIF
491
+ KeyError , # dpi not included
492
+ SyntaxError , # invalid/unreadable EXIF
493
+ TypeError , # dpi is an invalid float
494
+ ValueError , # dpi is an invalid float
495
+ ZeroDivisionError , # invalid dpi rational value
496
496
):
497
- # struct.error for truncated EXIF
498
- # KeyError for dpi not included
499
- # SyntaxError for invalid/unreadable EXIF
500
- # ValueError or TypeError for dpi being an invalid float
501
- # ZeroDivisionError for invalid dpi rational value
502
497
self .info ["dpi" ] = 72 , 72
503
498
504
499
def _getmp (self ):
You can’t perform that action at this time.
0 commit comments