Raise exceptions where appropriate
When using as a module, it's better to have exceptions on errors rather than False
return values, which don't give any further information and are easily accidentally ignored.
Edited by Jim Newsome
When using as a module, it's better to have exceptions on errors rather than False
return values, which don't give any further information and are easily accidentally ignored.