Issue14 prc
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
It's best not to have such big
try
blocks, because you will get very unspecific error handling: somewhere in all of those lines something went wrong... Best to catch errors as specific as possible. Also, you don't need to catch and handle every possible error. For example, ifdir_path
is a string, it will be very unlikely thatPath(dir_path)
will fail - but if it does, an error will be raised anyway. If that happens more often than we think, we can still catch that error more specifically.changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
Either remove, incorporate into the module- or function-level docstring or turn into a comment. Strings, even triple-quoted ones, that do not appear as the first statement in a module, class, function or method are not parsed by tools creating automatic documentation. There are, however, still parsed by the interpreter, slowing down the performance (very very very slightly, to be fair), without having any added benefits.
Removed
changed this line in version 2 of the diff