d
This commit is contained in:
@@ -1643,9 +1643,18 @@ class HydrusNetwork(Store):
|
||||
if not incoming_tags:
|
||||
return True
|
||||
|
||||
try:
|
||||
existing_tags, _src = self.get_tag(file_hash)
|
||||
except Exception:
|
||||
existing_tags = kwargs.get("existing_tags")
|
||||
if existing_tags is None:
|
||||
try:
|
||||
existing_tags, _src = self.get_tag(file_hash)
|
||||
except Exception:
|
||||
existing_tags = []
|
||||
if isinstance(existing_tags, (list, tuple, set)):
|
||||
existing_tags = [
|
||||
str(t).strip().lower() for t in existing_tags
|
||||
if isinstance(t, str) and str(t).strip()
|
||||
]
|
||||
else:
|
||||
existing_tags = []
|
||||
|
||||
from SYS.metadata import compute_namespaced_tag_overwrite
|
||||
|
||||
Reference in New Issue
Block a user