Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 6cf0ed9a8f1de6caeee7397e6b83b6489a5ccb5e Author: Bohuslav Kabrda bkabrda@redhat.com Date: Mon Feb 11 09:57:01 2013 +0100
Use a default value for 'from' field, when app.config['SERVER_NAME'] is None
coprs_frontend/coprs/log.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/log.py b/coprs_frontend/coprs/log.py index 60e24e1..1c2386a 100644 --- a/coprs_frontend/coprs/log.py +++ b/coprs_frontend/coprs/log.py @@ -20,7 +20,7 @@ Message:
if not app.debug: mail_handler = logging.handlers.SMTPHandler('127.0.0.1', - 'copr-fe-error@{0}'.format(app.config['SERVER_NAME']), + 'copr-fe-error@{0}'.format(app.config['SERVER_NAME'] or 'fedorahosted.org'), send_logs_to, 'Yay, error in copr frontend occured!') mail_handler.setFormatter(formatter)
copr-devel@lists.fedorahosted.org