mirror of
				https://github.com/RGBCube/GitHubWrapper
				synced 2025-10-31 05:52:45 +00:00 
			
		
		
		
	Fixed walrus
This commit is contained in:
		
							parent
							
								
									8f5780ce24
								
							
						
					
					
						commit
						04bdadc995
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -102,6 +102,12 @@ class GHClient: | |||
|         return self | ||||
| 
 | ||||
|     async def __aexit__(self, *args: Any, **kwargs: Any) -> None: | ||||
|         try: | ||||
|             session = self.http.session | ||||
|             await self.session.close() | ||||
|         except Exception as exc: | ||||
|             raise Exception('HTTP Session doesn\'t exist') from exc | ||||
| 
 | ||||
|         if session := getattr(self.http, 'session', None): | ||||
|             await session.close() | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 sudosnok
						sudosnok