scottrogowski / code2flow

Pretty good call graphs for dynamic languages
MIT License
3.92k stars 286 forks source link

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

Open ksnmartin opened 9 months ago

ksnmartin commented 9 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'