Cleaned the code
This commit is contained in:
parent
77b91efcc2
commit
c03d13cd79
@ -23,6 +23,8 @@ from celery import registry
|
|||||||
import urllib,urllib2
|
import urllib,urllib2
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
_log = logging.getLogger(__name__)
|
||||||
|
|
||||||
from werkzeug.utils import secure_filename
|
from werkzeug.utils import secure_filename
|
||||||
|
|
||||||
from mediagoblin.db.util import ObjectId
|
from mediagoblin.db.util import ObjectId
|
||||||
@ -145,10 +147,10 @@ def submit_start(request):
|
|||||||
except urllib2.HTTPError as exc:
|
except urllib2.HTTPError as exc:
|
||||||
# This is not a big issue, the item will be fetched
|
# This is not a big issue, the item will be fetched
|
||||||
# by the PuSH server next time we hit it
|
# by the PuSH server next time we hit it
|
||||||
logging.getLogger(__name__).warning(
|
_log.warning(
|
||||||
"push url %r gave error %r", huburl, exc.code)
|
"push url %r gave error %r", huburl, exc.code)
|
||||||
except urllib2.URLError as exc:
|
except urllib2.URLError as exc:
|
||||||
logging.getLogger(__name__).warning(
|
_log.warning(
|
||||||
"push url %r is unreachable %r", huburl, exc.reason)
|
"push url %r is unreachable %r", huburl, exc.reason)
|
||||||
|
|
||||||
add_message(request, SUCCESS, _('Woohoo! Submitted!'))
|
add_message(request, SUCCESS, _('Woohoo! Submitted!'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user