Skip to content

Commit

Permalink
Fix validate_executable behavior (#1915)
Browse files Browse the repository at this point in the history
Validate orca executable only if server_url is not provided
  • Loading branch information
Alexander authored and jonmmease committed Dec 9, 2019
1 parent 10a5541 commit 2352a6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/python/plotly/plotly/io/_orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2352a6e

Please sign in to comment.