Raise errors when running the management command even if DEBUG is False

This commit is contained in:
Tino
2012-02-03 21:30:52 +01:00
parent 6cead8a4ab
commit 04b836e5d8

View File

@@ -110,7 +110,7 @@ class CompressorMixin(object):
cache_set(cache_key, rendered_output) cache_set(cache_key, rendered_output)
return rendered_output return rendered_output
except Exception, e: except Exception, e:
if settings.DEBUG: if settings.DEBUG or forced:
raise e raise e
# Or don't do anything in production # Or don't do anything in production