Skip to content

Commit

Permalink
fix bug in assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
naoyak committed May 28, 2020
1 parent f1aef9f commit 9996fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knowledge_repo/app/deploy/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9996fbd

Please sign in to comment.