Skip to content

Commit

Permalink
add parens
Browse files Browse the repository at this point in the history
  • Loading branch information
AddisonSchiller committed Nov 21, 2017
1 parent 5e28b84 commit 725e635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waterbutler/providers/dataverse/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ async def upload(self, stream, path, **kwargs):
# Find appropriate version of file
metadata = await self._get_data('latest')
files = metadata if isinstance(metadata, list) else []
file_metadata = next(file for file in files if file.name == path.name or
path.name in file.original_names)
file_metadata = next(file for file in files if (file.name == path.name or
path.name in file.original_names))

if stream.writers['md5'].hexdigest != file_metadata.extra['hashes']['md5']:
raise exceptions.UploadChecksumMismatchError()
Expand Down

0 comments on commit 725e635

Please sign in to comment.