only try and delete queue file if it exists
This commit is contained in:
parent
23a3703a1d
commit
882779f547
@ -166,9 +166,10 @@ class MediaProcessor(object):
|
|||||||
# be removed too, but fail if the directory is not empty to be on
|
# be removed too, but fail if the directory is not empty to be on
|
||||||
# the super-safe side.
|
# the super-safe side.
|
||||||
queued_filepath = self.entry.queued_media_file
|
queued_filepath = self.entry.queued_media_file
|
||||||
mgg.queue_store.delete_file(queued_filepath) # rm file
|
if queued_filepath:
|
||||||
mgg.queue_store.delete_dir(queued_filepath[:-1]) # rm dir
|
mgg.queue_store.delete_file(queued_filepath) # rm file
|
||||||
self.entry.queued_media_file = []
|
mgg.queue_store.delete_dir(queued_filepath[:-1]) # rm dir
|
||||||
|
self.entry.queued_media_file = []
|
||||||
|
|
||||||
|
|
||||||
class ProcessingKeyError(Exception): pass
|
class ProcessingKeyError(Exception): pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user