Skip to content

Commit

Permalink
shipper: tasks: change sha256 empty detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswpark committed May 24, 2021
1 parent f9e80d3 commit f2e2356
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shipper/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def generate_sha256(build_id):
build = Build.objects.get(id=build_id)

# Check if this task has already been run
if build.sha256sum != '':
if build.sha256sum not in [None, '']:
print("SHA256 generated by another process, exiting!")
return

sha256sum = hashlib.sha256()
Expand Down

0 comments on commit f2e2356

Please sign in to comment.