Skip to content

Commit

Permalink
fix #1363
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Jan 8, 2025
1 parent 1cc45f1 commit 34031df
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sarracenia/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 34031df

Please sign in to comment.