diff --git a/templateflow/client.py b/templateflow/client.py index e0fc33ee..9d489fe6 100644 --- a/templateflow/client.py +++ b/templateflow/client.py @@ -472,7 +472,7 @@ def _truncate_s3_errors(filepaths): List of file paths to check and truncate if necessary. """ for filepath in filepaths: - if filepath.is_file(follow_symlinks=False) and 0 < filepath.stat().st_size < 1024: + if filepath.is_file() and 0 < filepath.stat().st_size < 1024: with open(filepath, 'rb') as f: content = f.read(100) if content.startswith(b'' in content: