- error_message = 'No matched commit url found'
- send_error_email(error_message)
- raise error_message
That pattern is repeated in many places. How about uniformly catch error in higher level and call send_error_email()?
That is, only raise here and call send_error_email() uniformly in another place.
Thanks, Fengguang