diff options
author | 2011-07-04 10:23:24 +0300 | |
---|---|---|
committer | 2011-07-04 10:23:24 +0300 | |
commit | 48944ae9625cf36457b053508eff1e189c64f2c4 (patch) | |
tree | e35a25fee83defb3aac5132d2509cac866ff8933 | |
parent | Small fix to follow checkConfirmationKey's changes (diff) | |
download | identity.gentoo.org-48944ae9625cf36457b053508eff1e189c64f2c4.tar.gz identity.gentoo.org-48944ae9625cf36457b053508eff1e189c64f2c4.tar.bz2 identity.gentoo.org-48944ae9625cf36457b053508eff1e189c64f2c4.zip |
Fix bug in checkConfirmationKey, call the model directly instead of
eval(arg)
-rw-r--r-- | libraries/verification.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/verification.py b/libraries/verification.py index 5c5ad5d..e0b9e6f 100644 --- a/libraries/verification.py +++ b/libraries/verification.py @@ -30,7 +30,7 @@ def checkConfirmationKey(key, model): Check if the URL matches any of the confirmation keys in the database ''' try: - result = eval(model).objects.get(url = key) - except eval(model).DoesNotExist as error: + result = model.objects.get(url = key) + except model.DoesNotExist: raise OkupyException('URL not found') return result |