cmake-uvision-syncer
cmake-uvision-syncer copied to clipboard
Exception if Aads/VariousControls/MiscControls is empty
I noticed that exception 'NoneType' object has no attribute 'split' comes out if Aads/VariousControls/MiscControls
is empty.
Line
https://github.com/bojanpotocnik/cmake-uvision-syncer/blob/049524cc18bcd17e2db54dee6b97d69429e37c5b/main.py#L414
calls text(...).split()
but text()
can be NoneType
if Aads/VariousControls/MiscControls
is empty.
Maybe the same exception can happen somewhere else.