Skip to content

Commit

Permalink
Oops, a tuple is mandatory, no list
Browse files Browse the repository at this point in the history
  • Loading branch information
FaQ committed May 2, 2019
1 parent e2039a2 commit 4842519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doit/task.py
Expand Up @@ -407,7 +407,7 @@ def check_attr(task, attr, value, valid):
@param valid (list): of valid types/value accepted
@raises InvalidTask if invalid input
"""
if isinstance(value, valid[0]):
if isinstance(value, tuple(valid[0])):
return
if value in valid[1]:
return
Expand Down

0 comments on commit 4842519

Please sign in to comment.