Skip to content

Commit

Permalink
Added os.unlink() for temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
fazledyn-or committed Jan 14, 2025
1 parent 25faabf commit d5884ab
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def handle(self, *args, **options):
if filename is None:
fd, filename = mkstemp()
os.close(fd)
os.unlink(filename)
pipe_results = True

export_course_to_tarfile(course_key, filename)
Expand Down

0 comments on commit d5884ab

Please sign in to comment.