I'm not actually sure - I don't know that much about python exception handling, or best practices here.
I'll look into this more.