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

Avoid KeyError exception on tags dictionary #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crile
Copy link

@crile crile commented Jan 4, 2019

Hi,
I don't know exactly why but some tags in my report as no pass/fail so there is an exception.

Traceback (most recent call last):
  File "robo_graph.py", line 70, in <module>
    robo_graph_generator()
  File "robo_graph.py", line 61, in robo_graph_generator
    html_data = create_chart(overall_result,tag_results)
  File "c:\Users\CYRIL_~1\AppData\Local\Temp\RoboReport\chart.py", line 73, in create_chart
    passed_values.append(tag_results[tags]['pass'])
KeyError: 'pass'
exit status 1

I just add a control and a message in the console.

@crile crile force-pushed the fix-tag-keyerror branch 2 times, most recently from 0425816 to 754e0d9 Compare January 4, 2019 11:02
@crile crile force-pushed the fix-tag-keyerror branch from 754e0d9 to 0cfe2e0 Compare January 4, 2019 13:27
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

Successfully merging this pull request may close these issues.

1 participant