scottrogowski / code2flow

Pretty good call graphs for dynamic languages
MIT License
4.02k stars 296 forks source link

som elements in the el list in the js walk function are None #91

Open ksnmartin opened 11 months ago

ksnmartin commented 11 months ago

getting this error . shoudnt the None in elements be skipped?


  File "/opt/homebrew/lib/python3.11/site-packages/code2flow/javascript.py", line 33, in walk
    if el.get('type'):
       ^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'