Skip to content

Commit

Permalink
removed printing of log message on missing optional media resources, …
Browse files Browse the repository at this point in the history
…fixed a layout bug on tags page and incremented revision
  • Loading branch information
evgenyfadeev committed Sep 1, 2011
1 parent d5e9157 commit a16a80b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion askbot/__init__.py
Expand Up @@ -9,7 +9,7 @@
import sys
import logging

VERSION = (0, 7, 21)
VERSION = (0, 7, 22)

#necessary for interoperability of django and coffin
try:
Expand Down
1 change: 1 addition & 0 deletions askbot/skins/default/templates/tags.html
Expand Up @@ -31,6 +31,7 @@ <h1>{% trans %}Tag list{% endtrans %}</h1>
<span>{% trans %}Nothing found{% endtrans %}</span>
{% endif %}
{% if tags.object_list %}
<div class='clearfix'></div>
<ul class='tags'>
{% for tag in tags.object_list %}
<li>
Expand Down
7 changes: 4 additions & 3 deletions askbot/skins/utils.py
Expand Up @@ -142,9 +142,10 @@ def get_media_url(url, ignore_missing = False):
try:
use_skin = resolve_skin_for_media(media=url, preferred_skin = use_skin)
except MediaNotFound:
log_message = 'missing media resource %s in skin %s' \
% (url, use_skin)
logging.critical(log_message)
if ignore_missing == False:
log_message = 'missing media resource %s in skin %s' \
% (url, use_skin)
logging.critical(log_message)
return None

url = use_skin + '/media/' + url
Expand Down

0 comments on commit a16a80b

Please sign in to comment.