Skip to content

Commit

Permalink
Close file first before unlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Aug 4, 2021
1 parent bc39fcf commit acefb2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huey/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ def dequeue(self):

with open(tmp_dest, 'rb') as fh:
data = fh.read()
os.unlink(tmp_dest)
os.unlink(tmp_dest)
return data

def queue_size(self):
Expand Down

0 comments on commit acefb2c

Please sign in to comment.