Skip to content

Commit

Permalink
Enable system to use default value if THUMBNAIL_DEBUG value does not …
Browse files Browse the repository at this point in the history
…exist in user"s settings.
  • Loading branch information
huseyinyilmaz committed Apr 20, 2014
1 parent 32d3279 commit fb2eb1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sorl/thumbnail/templatetags/thumbnail.py
Expand Up @@ -35,7 +35,7 @@ def wrapper(*args, **kwargs):
try:
return f(*args, **kwargs)
except Exception as err:
if settings.THUMBNAIL_DEBUG:
if sorl_settings.THUMBNAIL_DEBUG:
raise
logger.error('Thumbnail filter failed: %s' % err.message,
exc_info=sys.exc_info())
Expand All @@ -57,7 +57,7 @@ def render(self, context):
try:
return self._render(context)
except Exception:
if settings.THUMBNAIL_DEBUG:
if sorl_settings.THUMBNAIL_DEBUG:
raise

error_message = 'Thumbnail tag failed'
Expand Down

0 comments on commit fb2eb1e

Please sign in to comment.