pcdshub / pytmc

Generate EPICS IOCs and records from TwinCAT projects - along with many TwinCAT project tools
https://pcdshub.github.io/pytmc/
Other
10 stars 11 forks source link

FIX: declaration/implementation text can be None #128

Closed klauer closed 4 years ago

klauer commented 4 years ago

Closes pcdshub/ads-deploy#6

Declaration/implementation sections in source code files is allowed to be None. This fixes pytmc summary to not bail in such cases.

I'm sure we'll find similar issues like these as time goes on and more projects are run through the parser. Unless the issue reports get out of hand, I'd rather fix them one-by-one instead of handling such exceptions generically.

klauer commented 4 years ago

Locally confirmed this works with https://github.com/slacAWallace/pmps-dev-arbiter/commit/4bdda0c09e2dd7469f991374c248bf4916656fa0, as it was where @slacawallace found the bug.