if you use logging.exception here you get a nice stack trace too