mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 14:36:34 +00:00
Delete the source only when it was found
This commit is contained in:
parent
4303237b14
commit
78bd153158
@ -792,6 +792,7 @@ def delete_all_media_for_source(source_id, source_name, source_directory):
|
||||
(source and source.delete_removed_media) or
|
||||
(directory_path / '.to_be_removed').is_file()
|
||||
)
|
||||
if source:
|
||||
with atomic(durable=True):
|
||||
source.delete()
|
||||
if remove:
|
||||
|
Loading…
Reference in New Issue
Block a user