Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got a Python trace when the wrong utterance is used #4

Closed
goldyfruit opened this issue Dec 12, 2020 · 2 comments
Closed

Got a Python trace when the wrong utterance is used #4

goldyfruit opened this issue Dec 12, 2020 · 2 comments

Comments

@goldyfruit
Copy link
Member

If the wrong utterance is used such as when was born elon musk then the skill returns a Python trace.

2020-12-12 10:42:13.352 | ERROR    |  8895 | mycroft.skills.mycroft_skill.mycroft_skill:on_error:835 | An error occurred while processing a request in Duck Duck Go Skill
Traceback (most recent call last):
  File "/home/pi/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
    handler(message)
  File "/home/pi/mycroft-core/mycroft/skills/common_query_skill.py", line 76, in __handle_question_query
    result = self.CQS_match_query_phrase(search_phrase)
  File "/opt/mycroft/skills/skill-ddg.jarbasskills/__init__.py", line 171, in CQS_match_query_phrase
    answer, match, data = self.parse_subintents(utt)
  File "/opt/mycroft/skills/skill-ddg.jarbasskills/__init__.py", line 165, in parse_subintents
    answer = self.translate(answer)
  File "/opt/mycroft/skills/skill-ddg.jarbasskills/__init__.py", line 287, in translate
    translated_utt = utterance.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
@goldyfruit
Copy link
Member Author

Same with a different utterance, Utterance: ['is there any weather alerts']

2020-12-12 12:23:02.495 | ERROR    |  8895 | mycroft.skills.mycroft_skill.mycroft_skill:on_error:835 | An error occurred while processing a request in Duck Duck Go Skill
Traceback (most recent call last):
  File "/home/pi/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
    handler(message)
  File "/home/pi/mycroft-core/mycroft/skills/common_query_skill.py", line 76, in __handle_question_query
    result = self.CQS_match_query_phrase(search_phrase)
  File "/opt/mycroft/skills/skill-ddg.jarbasskills/__init__.py", line 171, in CQS_match_query_phrase
    answer, match, data = self.parse_subintents(utt)
  File "/opt/mycroft/skills/skill-ddg.jarbasskills/__init__.py", line 165, in parse_subintents
    answer = self.translate(answer)
  File "/opt/mycroft/skills/skill-ddg.jarbasskills/__init__.py", line 287, in translate
    translated_utt = utterance.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

@goldyfruit
Copy link
Member Author

Fixed with c8f2098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant