Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Update src/documents/models.py

Wolf-Bastian Pöttner534eb7de91a6
diff --git a/src/documents/models.py b/src/documents/models.py
index ae49c1518..fba81f697 100644
--- a/src/documents/models.py
+++ b/src/documents/models.py
@@ -413,7 +413,7 @@ def try_delete_empty_directories(directory):
return
# Cut off actual directory and go one level up
- directory, tmp = os.path.split(directory)
+ directory, _ = os.path.split(directory)
@receiver(models.signals.m2m_changed, sender=Document.tags.through)