parameters: (self, model, os_path)
docstring: Run the post-save hook if defined, and log errors
docstring_summary: Run the post-save hook if defined, and log errors
docstring_tokens: Run the post - save hook if defined and log errors
function: def run_post_save_hook(self, model, os_path):
          """Run the post-save hook if defined, and log errors"""
          if self.post_save_hook:
              try:
                  self.log.debug("Running post-save hook on %s", os_path)
                  self.post_save_hook(os_path=os_path, model=model, contents_manager=self)
              except Exception as e:
                  self.log.error("Post-save hook failed o-n %s", os_path, exc_info=True)
                  raise web.HTTPError(500, u'Unexpected error while running post hook save: %s'
                                      % e) from e
function_tokens: def run_post_save_hook ( self , model , os_path ) : if self . post_save_hook : try : self . log . debug ( "Running post-save hook on %s" , os_path ) self . post_save_hook ( os_path = os_path , model = model , contents_manager = self ) except Exception as e : self . log . error ( "Post-save hook failed o-n %s" , os_path , exc_info = True ) raise web . HTTPError ( 500 , u'Unexpected error while running post hook save: %s' % e ) from e