diff --git a/knowledge_repo/app/deploy/common.py b/knowledge_repo/app/deploy/common.py index fcfb34cb1..0c6eff96a 100644 --- a/knowledge_repo/app/deploy/common.py +++ b/knowledge_repo/app/deploy/common.py @@ -27,7 +27,7 @@ def __init__(self, port=7000, workers=4, timeout=60): - assert isinstance(knowledge_builder, str + (types.FunctionType, )), \ + assert isinstance(knowledge_builder, (str, types.FunctionType, )), \ "Unknown builder type {}".format(type(knowledge_builder)) self.knowledge_builder = knowledge_builder self.host = host