izar / pytm

A Pythonic framework for threat modeling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors when creating reports

sschaenz opened this issue · comments

When generating a report with "basic_template.md" there is the error message:

AttributeError: 'TM' object has no attribute 'assumptions'

Expressions like: {{item:call:getElementType}} or {{item:call:getFindingCount}} from advanced_template.md will result in an error message, for example: TypeError: unsupported format string passed to Actor.__format__

A simple template I created works (without call:) and a Markdown file is generated.

I use Python 3.9.9 on MacOS. pytm 1.2.0 (installed with pip).

Greeting
Stefan

Thanks for the report!

Looks like something got out of sync on the package. I am releasing 1.2.1 that should fix that. Please test and let me know.

1.2.1 released with a fix, please update and let us know if it is solved.

Just tested it successfully. All the problems I reported are solved.

Thank you very much!