From 914e06c6a491148a7addf697e98ab96ce1d431ea Mon Sep 17 00:00:00 2001 From: Eric Price Date: Tue, 11 Dec 2007 02:08:49 -0500 Subject: [PATCH] Fix bug in revision 250. svn path=/trunk/web/; revision=251 --- validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation.py b/validation.py index 5443d54..0626f86 100644 --- a/validation.py +++ b/validation.py @@ -39,7 +39,7 @@ def maxMemory(user, machine=None, on=True): """ if not on: return MAX_MEMORY_SINGLE - if machine.memory > MAX_MEMORY_SINGLE: + if machine is not None and machine.memory > MAX_MEMORY_SINGLE: # If they've been blessed, let them have it return machine.memory machines = getMachinesByOwner(user, machine) -- 1.7.9.5