Skip to content
Browse files

fix div by zero

  • Loading branch information...
1 parent 4ee1b0b commit 39da05440fc309d006b610fdb7dfe3571864e39f @etabard etabard committed
Showing with 5 additions and 1 deletion.
  1. +4 −0 puke/Tools.py
  2. +1 −1 setup.py
View
4 puke/Tools.py
@@ -102,6 +102,10 @@ def minify(in_file, out_file = None, verbose=False):
console.info(' ~ Original: %.2f kB' % (org_size / 1024.0))
console.info(' ~ Compressed: %.2f kB' % (new_size / 1024.0))
+
+ if not org_size:
+ return
+
console.confirm(' %s ( Reduction : %.1f%% )' % (out_file, (float(org_size - new_size) / org_size * 100)))
View
2 setup.py
@@ -15,7 +15,7 @@
setup(
name = "puke",
- version = "1.5.4",
+ version = "1.5.5",
packages = ['puke'],
scripts = [

0 comments on commit 39da054

Please sign in to comment.
Something went wrong with that request. Please try again.