Skip to content

Commit

Permalink
Code Refactor for Speed and Readability (#92)
Browse files Browse the repository at this point in the history
Co-authored-by: Glenn Jocher <[email protected]>
Co-authored-by: UltralyticsAssistant <[email protected]>
  • Loading branch information
3 people authored Jun 9, 2024
1 parent 7f543ba commit 12cd4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def exif_size(img):
rotation = dict(img._getexif().items())[orientation]
if rotation in [6, 8]: # rotation 270
s = (s[1], s[0])
except:
except Exception:
pass

return s
Expand Down

0 comments on commit 12cd4ed

Please sign in to comment.