FEM: python, get rid of bare excepts

This commit is contained in:
Bernd Hahnebach
2020-10-27 08:23:12 +01:00
parent 70e11ebc52
commit 6fda0a2faa
10 changed files with 16 additions and 9 deletions

View File

@@ -34,6 +34,13 @@ These coding rules apply to FEM module code only. Other modules or the base syst
- maximal line length is 100
- double quotes as string identifier
### Exceptione
- Do not use bare 'except'.
- Be more specific. If not possible use:
- Either use 'except Exception' or if really everything should be catched 'except BaseException'
- https://stackoverflow.com/a/18982772
- https://github.com/PyCQA/pycodestyle/issues/703
### Imports
- Only one import per line.
- Even on import from some_module import something. There should only be one something per line.