fix a potential panic when querying authenticator status (#395)
This commit is contained in:
parent
28c7a797cf
commit
dd153a617c
1 changed files with 1 additions and 4 deletions
|
@ -137,10 +137,7 @@ where
|
|||
let mut req = CTwoFactor_Status_Request::new();
|
||||
req.set_steamid(account.steam_id);
|
||||
|
||||
let resp = self
|
||||
.client
|
||||
.query_status(req, self.tokens.access_token())
|
||||
.unwrap();
|
||||
let resp = self.client.query_status(req, self.tokens.access_token())?;
|
||||
|
||||
Ok(resp.into_response_data())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue