Use early returns
For example here, we can use
if not folder.is_dir():
raise Exception("the path indicated does not lead to a folder.")
list_bio_file = list(folder.rglob("*.bio"))
# ...
We need to check all files
For example here, we can use
if not folder.is_dir():
raise Exception("the path indicated does not lead to a folder.")
list_bio_file = list(folder.rglob("*.bio"))
# ...
We need to check all files
added P3 label
changed title from Using early returns to Use early returns
assigned to @mblanco
changed milestone to %0.4.0
mentioned in merge request !36 (merged)
closed with merge request !36 (merged)