Refurb linting

Lint with [refurb](https://github.com/dosisod/refurb) using `--disable 126 --python-version 3.9`
This commit is contained in:
OMEGARAZER
2022-11-30 17:19:02 -05:00
parent 5cb3c2c635
commit 831f49daa6
6 changed files with 12 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ class FileNameFormatter:
destination_directory,
*[self._format_name(resource.source_submission, part) for part in self.directory_format_string],
)
index = f'_{str(index)}' if index else ''
index = f'_{index}' if index else ''
if not resource.extension:
raise BulkDownloaderException(f'Resource from {resource.url} has no extension')
file_name = str(self._format_name(resource.source_submission, self.file_format_string))