DaveM2430 commited on
Commit
ceb2861
Β·
verified Β·
1 Parent(s): a1baf93

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +7 -1
app.R CHANGED
@@ -17,7 +17,13 @@ load_scores <- function(level) {
17
  }
18
 
19
  load_portal <- function() {
20
- arrow::read_parquet("/app/transfer_portal.parquet")
 
 
 
 
 
 
21
  }
22
 
23
  # ── Pitch colors ───────────────────────────────────────────────────────────────
 
17
  }
18
 
19
  load_portal <- function() {
20
+ tryCatch(
21
+ arrow::read_parquet("/app/transfer_portal.parquet"),
22
+ error = function(e) {
23
+ message("Portal load failed: ", e$message)
24
+ tibble(Pitcher=character(), Portal=character())
25
+ }
26
+ )
27
  }
28
 
29
  # ── Pitch colors ───────────────────────────────────────────────────────────────