check that cleanup dir exists
svn: r884
This commit is contained in:
parent
04bc38a3fd
commit
bb60675440
|
@ -130,8 +130,9 @@
|
|||
(lambda (e)
|
||||
(LOG "*** ERROR DURING (cleanup-submission ~s) : ~a"
|
||||
dir (if (exn? e) (exn-message e) e)))])
|
||||
(parameterize ([current-directory dir])
|
||||
(call-with-semaphore cleanup-sema cleanup-submission-body))))
|
||||
(when (directory-exists? dir) ; submissions can fail before mkdir
|
||||
(parameterize ([current-directory dir])
|
||||
(call-with-semaphore cleanup-sema cleanup-submission-body)))))
|
||||
|
||||
(define (cleanup-all-submissions)
|
||||
(LOG "Cleaning up all submission directories")
|
||||
|
|
Loading…
Reference in New Issue
Block a user