Skip to content

Commit

Permalink
Add >=4.0.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Feb 12, 2024
1 parent ed449f1 commit 87045bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytroll_collectors/trollstalker.py
Expand Up @@ -247,6 +247,7 @@ def __init__(self, processor):
def on_closed(self, event):
"""Trigger processing on closed write."""
self.processor.process(event)
print("yep, processed")

def on_moved(self, event):
"""Trigger processing on move."""
Expand Down Expand Up @@ -280,7 +281,7 @@ def __init__(self, topic, instrument, config_item, posttroll_port=0, filepattern
def process(self, event):
"""Process the event."""
try:
pathname = event.dest_path
pathname = event.dest_path or event.src_path
except AttributeError:
pathname = event.src_path
logger.debug("processing %s", pathname)
Expand Down

0 comments on commit 87045bc

Please sign in to comment.