Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jul 15, 2024
1 parent 4184b64 commit 0ce8646
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion ovos_workshop/decorators/killable.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def cb():
except threading.ThreadError:
pass # already killed
except AssertionError:
LOG.exception("could not determine thread id")
pass # could not determine thread id ?
except exc:
# this is the exception we raised ourselves to kill the thread
Expand Down
6 changes: 6 additions & 0 deletions ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,10 +1265,16 @@ def _handle_converse_request(self, message: Message):
self.bus.emit(message.reply('skill.converse.response',
{"skill_id": self.skill_id,
"result": result}))
except (AbortQuestion, AbortEvent):
self.bus.emit(message.reply('skill.converse.response',
{"skill_id": self.skill_id,
"error": "killed",
"result": False}))
except Exception as e:
LOG.error(e)
self.bus.emit(message.reply('skill.converse.response',
{"skill_id": self.skill_id,
"error": repr(e),
"result": False}))

def _handle_stop_ack(self, message: Message):
Expand Down

0 comments on commit 0ce8646

Please sign in to comment.