added exception for invalid/no api key
This commit is contained in:
@@ -28,9 +28,11 @@ class SightstoneBaseModule
|
||||
raise Sightstone::SightstoneConnectionException
|
||||
elsif response_code == 429
|
||||
raise Sightstone::RateLimitExceededException
|
||||
elsif response_code == 401
|
||||
raise Sightstone::InvalidApiKeyException
|
||||
else
|
||||
raise Sightstone::SightstoneApiException 'Unknown error occured'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user