Skip to content

Commit

Permalink
handle non existing ckeys better
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Nov 7, 2024
1 parent 35ea013 commit 2f35a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub async fn index(

let user = match user_result {
Ok(user) => user,
Err(error) => panic!("Error retrieving data: {error:?}"),
Err(_) => return None,
};

Some(Json(user.add_metadata(&mut **db).await))
Expand Down

0 comments on commit 2f35a35

Please sign in to comment.