Permalink
Browse files

Don't hang waiting on input from stdin with incorrect MINIFY_BUNDLES,…

… raise an exception instead.
  • Loading branch information...
1 parent 0548993 commit 177ba9c757c255215de6927f5cb9fdd8b8b965f9 @nickolay nickolay committed May 19, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 jingo_minify/management/commands/compress_assets.py
@@ -80,6 +80,10 @@ def handle(self, **options):
# Concat all the files.
tmp_concatted = '%s.tmp' % concatted_file
+ if len(files_all) == 0:
+ raise CommandError('No input files specified in ' +
+ 'MINIFY_BUNDLES["%s"]["%s"] in settings.py!' %
+ (ftype, name))
self._call("cat %s > %s" % (' '.join(files_all), tmp_concatted),
shell=True)

0 comments on commit 177ba9c

Please sign in to comment.