Skip to content

Commit

Permalink
Fixing mistake highlighted by Mikhail Kashkin at: http://blog.ivandem…
Browse files Browse the repository at this point in the history
…arino.me/2010/11/26/Minification-and-Templating-for-Bloggart#comment-164010391

Why was that call there? Because "minifier.py" was developed for "txty.mobi" and... I forgot it there :P
  • Loading branch information
detro committed Mar 11, 2011
1 parent 0b2c104 commit ba164d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions minifier.py
Expand Up @@ -25,8 +25,7 @@ def get( self, requestedCssFilename ):
cssPath = os.path.join( os.path.dirname( __file__ ), 'themes/%s/%s' % (config.theme, requestedCssFilename) );
if ( not os.path.exists(cssPath) ):
logging.error("CSS not found: "+cssPath);
# Client Error 4xx - 404 Not Found
util.setErrorResponse(self, 404);
self.error(404); # Client Error 4xx - 404 Not Found
return;

cssRenderingResult = None;
Expand Down Expand Up @@ -70,8 +69,7 @@ def get( self, requestedJsFilename ):
jsPath = os.path.join( os.path.dirname( __file__ ), 'themes/%s/%s' % (config.theme, requestedJsFilename) );
if ( not os.path.exists(jsPath) ):
logging.error("Javascript not found: "+jsPath);
# Client Error 4xx - 404 Not Found
util.setErrorResponse(self, 404);
self.error(404); # Client Error 4xx - 404 Not Found
return;

jsRenderingResult = None;
Expand Down

0 comments on commit ba164d7

Please sign in to comment.