From 34031df0af0557c13cae6385ae864a649c9272f6 Mon Sep 17 00:00:00 2001 From: Peter Silva Date: Wed, 8 Jan 2025 12:38:21 -0500 Subject: [PATCH] fix #1363 --- sarracenia/flow/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sarracenia/flow/__init__.py b/sarracenia/flow/__init__.py index 4247adf97..3e4e62f95 100644 --- a/sarracenia/flow/__init__.py +++ b/sarracenia/flow/__init__.py @@ -1686,8 +1686,14 @@ def link1file(self, msg, symbolic=True) -> bool: imported from v2/subscribe/doit_download "link event, try to link the local product given by message" """ - logger.debug("message is to link %s to %s" % - (msg['new_file'], msg['fileOp']['link'])) + if 'link' in msg['fileOp']: + link=msg['fileOp']['link'] + elif 'hlink' in msg['fileOp']: + link=msg['fileOp']['hlink'] + else: + link='MALFORMED_LINK_MESSAGE' + + logger.debug( f"message is to link {msg['new_file']} to {link}" ) # redundant, check is done in caller. #if not 'link' in self.o.fileEvents: