Skip to content

Commit

Permalink
- Fix instance where root_account_id ends up as None when dealing wit…
Browse files Browse the repository at this point in the history
…h creating canvas DEV keys
  • Loading branch information
frankyrumple committed Mar 12, 2022
1 parent 9016197 commit 50caebb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web2py/applications/smc/modules/ednet/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50caebb

Please sign in to comment.