Letter replacer - suggestions?
Grant Edwards
grant.b.edwards at gmail.com
Mon Dec 7 13:36:36 EST 2020
On 2020-12-07, MRAB <python at mrabarnett.plus.com> wrote:
> Avoid a 'bare' except unless you _really_ mean it, which is
> virtually never. Catch only those exceptions that you're going to
> handle.
And sometimes "handling" is just printing some extra stuff and then
re-raising the original exception:
try:
something():
except:
print(<whatever might be helpful for troubleshooting>)
raise
More information about the Python-list
mailing list