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

IndexError: no such group #2

Open
justinnaldzin opened this issue Nov 1, 2017 · 0 comments
Open

IndexError: no such group #2

justinnaldzin opened this issue Nov 1, 2017 · 0 comments

Comments

@justinnaldzin
Copy link

justinnaldzin commented Nov 1, 2017

retirejs.scan_endpoint("https://apis.google.com/js/plusone.js")

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-16-994defb48f3e> in <module>()
----> 1 retirejs.scan_endpoint("https://apis.google.com/js/plusone.js")

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan_endpoint(uri, definitions)
    172     hosted at that uri
    173     """
--> 174     uri_scan_result = scan_uri(uri, definitions)
    175 
    176     filecontent = requests.get(uri, verify=False).text

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan_uri(uri, definitions)
    144 
    145 def scan_uri(uri, definitions=definitions):
--> 146     result = scan(uri, 'uri', definitions=definitions)
    147     return check(result)
    148 

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan(data, extractor, matcher, definitions)
     23             continue
     24         for i in extractors:
---> 25             match = matcher(i, data)
     26             if (match):
     27                 detected.append({"version": match,

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in _simple_match(regex, data)
     33 def _simple_match(regex, data):
     34     match = re.search(regex, data)
---> 35     return match.group(1) if match else None
     36 
     37 

IndexError: no such group
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