From b5dcf41097141bc78e04798ebd4d914610dc602c Mon Sep 17 00:00:00 2001 From: tcely Date: Sat, 22 Feb 2025 07:05:44 -0500 Subject: [PATCH] Log not existing source pre save I think this is not only possible, but happens regularly. --- tubesync/sync/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/signals.py b/tubesync/sync/signals.py index 5800c5ce..2d2c6ecb 100644 --- a/tubesync/sync/signals.py +++ b/tubesync/sync/signals.py @@ -25,7 +25,7 @@ def source_pre_save(sender, instance, **kwargs): try: existing_source = Source.objects.get(pk=instance.pk) except Source.DoesNotExist: - # Probably not possible? + log.debug(f'source_pre_save signal: no existing source: {sender} - {instance}') return existing_dirpath = existing_source.directory_path.resolve(strict=True) new_dirpath = instance.directory_path.resolve(strict=False)