Skip to content

Commit 1e5b985

Browse files
Fix color cycling and HTTP error handling
1 parent e13371c commit 1e5b985

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/1-fetch/gcs_fetch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def query_gcs(args, service, last_completed_plan_index, plan):
259259
initial_delay *= 2 # Exponential backoff
260260
else:
261261
LOGGER.error(f"Error fetching results: {e}")
262+
break
262263
if success:
263264
append_data(args, plan_row, index, count)
264265
else:

scripts/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def annotate_ylabels(ax, data, data_label, colors):
2121
# defaults: ytick.major.size + ytick.major.pad
2222
indent = -1 * (ytick.get_tick_padding() + ytick.get_pad())
2323
for index, row in data.iterrows():
24-
if c > len(colors):
24+
if c >= len(colors):
2525
c = 0
2626

2727
# annotate totals

0 commit comments

Comments
 (0)