From dc601be70cf42954bbd1459df26e514e159b9b53 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 21 Nov 2019 04:56:22 +0300 Subject: [PATCH] Fix validate_executable behavior Validate orca executable only if server_url is not provided --- packages/python/plotly/plotly/io/_orca.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/python/plotly/plotly/io/_orca.py b/packages/python/plotly/plotly/io/_orca.py index 055bb8e4a37..96f3ec5d6f8 100644 --- a/packages/python/plotly/plotly/io/_orca.py +++ b/packages/python/plotly/plotly/io/_orca.py @@ -1384,11 +1384,10 @@ def ensure_server(): """ ) - # Validate orca executable - if status.state == "unvalidated": - validate_executable() - if not config.server_url: + # Validate orca executable only if server_url is not provided + if status.state == "unvalidated": + validate_executable() # Acquire lock to make sure that we keep the properties of orca_state # consistent across threads with orca_lock: