diff --git a/web2py/applications/smc/modules/ednet/canvas.py b/web2py/applications/smc/modules/ednet/canvas.py index 173d04f9..e015e87a 100644 --- a/web2py/applications/smc/modules/ednet/canvas.py +++ b/web2py/applications/smc/modules/ednet/canvas.py @@ -220,7 +220,10 @@ def EnsureDevKey(): user_id = row[0] account_id = row[1] root_account_id = row[2] - + if root_account_id is None: + # Make sure we have a good root account id + root_account_id = 2 + if user_id < 1: msg += " Unable to find admin user in canvas - ensure that an admin user exists with the " + admin_user + " name" return "", msg