Could you remove the print_exc calls, they arn't needed anymore as the logger.exception will print a stacktrace.