throw exception instead of returning null
This commit is contained in:
parent
b0e7601333
commit
a7b4a4978a
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ namespace BirdsiteLive.Twitter
|
|||
public TwitterUser GetUser(string username)
|
||||
{
|
||||
//Check if API is saturated
|
||||
if (IsUserApiRateLimited()) return null;
|
||||
if (IsUserApiRateLimited()) throw new RateLimitExceededException();
|
||||
|
||||
//Proceed to account retrieval
|
||||
_twitterAuthenticationInitializer.EnsureAuthenticationIsInitialized();
|
||||
|
|
Reference in a new issue