Skip to content

Commit

Permalink
replace execute with handle
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong-ji committed Nov 15, 2024
1 parent 4821615 commit 36c71d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,7 @@ def rca_run(self, opts):
self.set_context('rca_run', 'rca_run', config)
try:
handler = RCAHandler(self.context)
handler.handle()
return handler.execute()
return handler.handle()
except Exception as e:
self.stdio.error("rca run Exception: {0}".format(e))
self.stdio.verbose(traceback.format_exc())
Expand All @@ -529,7 +528,7 @@ def update(self, opts):
self.stdio.print("update start ...")
self.set_offline_context('update', 'update')
handler = UpdateHandler(self.context)
return handler.execute()
return handler.handle()

def config(self, opt):
config = self.config_manager
Expand Down

0 comments on commit 36c71d8

Please sign in to comment.