Skip to content

Commit

Permalink
#1437 check py2 first
Browse files Browse the repository at this point in the history
  • Loading branch information
ricwo committed Oct 1, 2018
1 parent 870abc0 commit 47143c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa_nlu/data_router.py
Expand Up @@ -361,7 +361,7 @@ def training_errback(failure):

# tensorflow training is not executed in a separate thread on python 2,
# as this may cause training to freeze
if self._tf_in_pipeline(train_config) and six.PY2:
if six.PY2 and self._tf_in_pipeline(train_config):
try:
logger.warning("Training a pipeline with a tensorflow "
"component. This blocks the server during "
Expand Down

0 comments on commit 47143c0

Please sign in to comment.