Describe the bug
sleeper_userleagues doesn't handle some case and throws an Error instead of returning a valid result (e.g. empty collection).
Reprex
> sleeper_userleagues("sssskoch", 2021)
Error in `dplyr::rename()`:
! Can't rename columns that don't exist.
x Column `name` doesn't exist.
# Please include the code used for the connection object from `ff_connect()`
N/A, no connection needed for sleeper_userleagues
Expected behavior
Maybe it should return an empty collection
Session information
Please copy the output of ffscrapr::ffverse_sitrep() into the box below.
N/A, this command hangs.
Describe the bug
sleeper_userleaguesdoesn't handle some case and throws an Error instead of returning a valid result (e.g. empty collection).Reprex
# Please include the code used for the connection object from `ff_connect()`N/A, no connection needed for
sleeper_userleaguesExpected behavior
Maybe it should return an empty collection
Session information
Please copy the output of
ffscrapr::ffverse_sitrep()into the box below.N/A, this command hangs.