summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 04ed6d6c0..d26a64e38 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -5779,7 +5779,10 @@ class Document(BaseHistorizedItem, QRCodeItem, OwnPerms, ImageModel,
links.append(new_path)
if match: # the current link is correct
continue
- os.symlink(reference_path, new_path)
+ try:
+ os.symlink(reference_path, new_path)
+ except FileExistsError:
+ pass
return links
def related_label(self):