From 89008b527e5907bd057e3e69bfc4e879f6151c7f Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 6 Jun 2024 12:23:47 +0000 Subject: [PATCH] Add changes for d095485061da1dbf9e210bfdd38b32da5f033dfc --- _modules/sarracenia/flow.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_modules/sarracenia/flow.html b/_modules/sarracenia/flow.html index 4a51c5fd3..0582966a0 100644 --- a/_modules/sarracenia/flow.html +++ b/_modules/sarracenia/flow.html @@ -2074,9 +2074,12 @@

Source code for sarracenia.flow

             msg['_deleteOnPost'] |= set(['new_inflight_path'])
 
         if 'download' in self.plugins and len(self.plugins['download']) > 0:
+            ok = False
             for plugin in self.plugins['download']:
                 try:
                     ok = plugin(msg)
+                    if type(ok) is not bool:
+                        logger.error( f"{plugin} returned {type(ok)}. Should return boolean" )
                 except Exception as ex:
                     logger.error( f'flowCallback plugin {plugin} crashed: {ex}' )
                     logger.debug( "details:", exc_info=True )
@@ -2354,9 +2357,12 @@ 

Source code for sarracenia.flow

                      (self.scheme, msg['new_dir'], msg['new_file']))
 
         if len(self.plugins['send']) > 0:
+            ok = False
             for plugin in self.plugins['send']:
                 try:
                     ok = plugin(msg)
+                    if type(ok) is not bool:
+                        logger.error( f"{plugin} returned {type(ok)}. Should return boolean" )
                 except Exception as ex:
                     logger.error( f'flowCallback plugin {plugin} crashed: {ex}' )
                     logger.debug( "details:", exc_info=True )