Skip to content

sleeper_userleagues: Error in `dplyr::rename() #429

@soricinae

Description

@soricinae

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions