1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/b67a464b8588/
Changeset: b67a464b8588
User: jmchilton
Date: 2014-01-30 01:35:54
Summary: Fix division by zero error in quota.
Affected #: 1 file
diff -r 286b0d3b0485cfd1e5434dda86528662549d4468 -r
b67a464b8588525e17fd64910b9b9f3bcadb82ae lib/galaxy/quota/__init__.py
--- a/lib/galaxy/quota/__init__.py
+++ b/lib/galaxy/quota/__init__.py
@@ -138,7 +138,11 @@
# get the usage, if it wasn't passed
if usage is False:
usage = self.get_usage( trans, user, history )
- return min( ( int( float( usage ) / quota * 100 ), 100 ) )
+ try:
+ return min( ( int( float( usage ) / quota * 100 ), 100 ) )
+ except ZeroDivisionError:
+ return 100
+
def set_entity_quota_associations( self, quotas=[], users=[], groups=[],
delete_existing_assocs=True ):
for quota in quotas:
Repository URL:
https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.