Skip to content

Commit 7b6cfe8

Browse files
committed
Apply formatting 💄
1 parent 5952df4 commit 7b6cfe8

File tree

1 file changed

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

1 file changed

+6
-3
lines changed

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,16 @@ def wrapper(*args, **kwargs):
124124
except Exception as e:
125125
elapsed_time = time.time() - start_time
126126
if elapsed_time * 1000 >= max_delay:
127-
raise TimeoutError(f"Retry limit of {max_delay} milliseconds reached.") from e
128-
127+
raise TimeoutError(
128+
f"Retry limit of {max_delay} milliseconds reached."
129+
) from e
130+
129131
wait_time = random.uniform(min_wait, max_wait)
130132
print(f"Retrying in {wait_time:.2f} seconds due to {e}...")
131133
time.sleep(wait_time)
132-
134+
133135
return wrapper
136+
134137
return decorator
135138

136139

0 commit comments

Comments
 (0)