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

Validation Error when pushing error #63

Merged

Conversation

squioc
Copy link
Contributor

@squioc squioc commented Jul 19, 2019

Fix exception 'IndexError: list assignment index out of range'.

This exception happens when validating a valid STIX pattern (from the STIXPatternParser view) that doesn't start with [or ([ but with <space><space>[ or (<space>[.

…the error stack

aim to prevent 'IndexError: list assignment index out of range' when inserting error at the top of an empty error stack
@codecov-io
Copy link

codecov-io commented Jul 19, 2019

Codecov Report

Merging #63 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #63   +/-   ##
=======================================
  Coverage   81.62%   81.62%           
=======================================
  Files          10       10           
  Lines        2405     2405           
=======================================
  Hits         1963     1963           
  Misses        442      442
Impacted Files Coverage Δ
stix2patterns/validator.py 64.63% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3053beb...46614a4. Read the comment docs.

@clenk
Copy link
Contributor

clenk commented Sep 3, 2019

Looks good to me; thanks @squioc!

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.

3 participants