autoDocstring icon indicating copy to clipboard operation
autoDocstring copied to clipboard

resolves #181 Add AssertionError

Open chrimaho opened this issue 4 years ago • 1 comments

This PR resolves #181.

It adds a second loop to the parseExceptions() function, which searches for a different pattern (/(?<!#.*)assert\s+/), and adds each to the list of exceptions.

The assert loop is run first, because assert's are usually at the beginning of functions, while raise's are usually later.

chrimaho avatar Apr 05 '21 00:04 chrimaho

Hi sorry for the very very late reply. This would be a good addition. Could you add tests to this pr? Also can you rebase master to get the github actions to work.

NilsJPWerner avatar Feb 08 '22 20:02 NilsJPWerner