Skip to content

Commit

Permalink
fix: use lstat rather than state(follow_symlinks=False)
Browse files Browse the repository at this point in the history
follow_symlinks is only available from py3.10
  • Loading branch information
the-forest-tree authored and the-forest-tree committed Oct 30, 2023
1 parent 0fdd3a7 commit 3f05814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hrflow_connectors/core/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def logo(self, connectors_directory: Path) -> str:
" be present".format(self.name, logo_paths)
)
logo = logo_paths[0]
size = logo.stat(follow_symlinks=False).st_size
size = logo.lstat().st_size
if size > MAX_LOGO_SIZE_BYTES:
raise ValueError(
"Logo size {} KB for connector {} is above maximum limit of {} KB"
Expand Down

0 comments on commit 3f05814

Please sign in to comment.