Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug fix

  • Loading branch information...
commit dc54eda91e742cd7bbd4221d01c57cba2788bbd1 1 parent ca3b336
binux authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libs/
2  libs/
@@ -380,7 +380,7 @@ def _random():
task = self.get_task_by_cid(info['cid']).first()
if info['title'] and not task:
task = self.get_task_by_title(info['title']).first()
- if url and not task:
+ if url and isinstance(url, basestring) and not task:
task = session.query(db.Task).filter(db.Task.url == url).first()
if not task:
return (-5, "match task error")
Please sign in to comment.
Something went wrong with that request. Please try again.