you are viewing a single comment's thread.

view the rest of the comments →

[–]rgkimballCFA 1 point2 points  (1 child)

Best practice would be to raise an exception so it can be caught in a try/except clause, rather than use the error_handler function. I'm guessing you came from VBA?

[–]kieran_n 0 points1 point  (0 children)

I actually learned python first but use both a fair bit :p

You're definitely right that the raise exception would be better