mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Log not existing source pre save
I think this is not only possible, but happens regularly.
This commit is contained in:
parent
1f0169ae4b
commit
b5dcf41097
@ -25,7 +25,7 @@ def source_pre_save(sender, instance, **kwargs):
|
|||||||
try:
|
try:
|
||||||
existing_source = Source.objects.get(pk=instance.pk)
|
existing_source = Source.objects.get(pk=instance.pk)
|
||||||
except Source.DoesNotExist:
|
except Source.DoesNotExist:
|
||||||
# Probably not possible?
|
log.debug(f'source_pre_save signal: no existing source: {sender} - {instance}')
|
||||||
return
|
return
|
||||||
existing_dirpath = existing_source.directory_path.resolve(strict=True)
|
existing_dirpath = existing_source.directory_path.resolve(strict=True)
|
||||||
new_dirpath = instance.directory_path.resolve(strict=False)
|
new_dirpath = instance.directory_path.resolve(strict=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user