Make RemoteException explicitly take Response argument
This commit is contained in:
		
							parent
							
								
									657c6d4b98
								
							
						
					
					
						commit
						293c2ab1cf
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -1,5 +1,11 @@ | |||
| from nntp.tiny.response import Response | ||||
| 
 | ||||
| class RemoteException(Exception): | ||||
|     pass | ||||
|     def __init__(self, response: Response): | ||||
|         self.response = response | ||||
| 
 | ||||
|     def __str__(self): | ||||
|         return str(self.response) | ||||
| 
 | ||||
| class RemoteNewsgroup(): | ||||
|     __slots__ = 'name', | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue