3 ms·
Yes, except for things that helpfully return "None" instead of raising an exception, on account of "not finding something is not exceptional behavior" or someth
by mmirate 8y ago
Yes, except for things that helpfully return "None" instead of raising an exception, on account of "not finding something is not exceptional behavior" or something like that.
And since "raise" is a statement, you have to write your own "raise_if_none" function and sprinkle it everywhere...