Skip to content

Commit 2352a6e

Browse files
Alexanderjonmmease
Alexander
authored andcommitted
Fix validate_executable behavior (#1915)
Validate orca executable only if server_url is not provided
1 parent 10a5541 commit 2352a6e

File tree

1 file changed

+3
-4
lines changed
  • packages/python/plotly/plotly/io

1 file changed

+3
-4
lines changed

Diff for: packages/python/plotly/plotly/io/_orca.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1384,11 +1384,10 @@ def ensure_server():
13841384
"""
13851385
)
13861386

1387-
# Validate orca executable
1388-
if status.state == "unvalidated":
1389-
validate_executable()
1390-
13911387
if not config.server_url:
1388+
# Validate orca executable only if server_url is not provided
1389+
if status.state == "unvalidated":
1390+
validate_executable()
13921391
# Acquire lock to make sure that we keep the properties of orca_state
13931392
# consistent across threads
13941393
with orca_lock:

0 commit comments

Comments
 (0)