Skip to content
Snippets Groups Projects
Commit 59fa9e03 authored by Megan Henning's avatar Megan Henning
Browse files

Close #255

parent 2d9d03b8
No related branches found
No related tags found
No related merge requests found
......@@ -332,7 +332,7 @@ class Upload(base.RequestHandler):
result = None
try:
result = config.db['tokens'].find_one({
'_id': bson.ObjectId(token)
'_id': token
})
except bson.errors.InvalidId:
# Folders could be an invalid mongo ID, in which case they're definitely expired :)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment