mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-31 05:23:03 +00:00 
			
		
		
		
	Check the right status code for improper token being passed.
This commit is contained in:
		| @@ -452,7 +452,7 @@ class Client: | ||||
|         log.debug(request_logging_format.format(method='GET', response=resp)) | ||||
|  | ||||
|         if resp.status != 200: | ||||
|             if resp.status == 400: | ||||
|             if resp.status == 401: | ||||
|                 raise LoginFailure('Improper token has been passed.') | ||||
|             else: | ||||
|                 raise HTTPException(resp, None) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user