mirror of
				https://github.com/RGBCube/GitHubWrapper
				synced 2025-10-31 05:52:45 +00:00 
			
		
		
		
	Merge branch 'main' of https://github.com/VarMonke/Github-Api-Wrapper
This commit is contained in:
		
						commit
						456d2f9916
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -102,8 +102,11 @@ class GHClient: | |||
|         return self | ||||
| 
 | ||||
|     async def __aexit__(self, *args: Any, **kwargs: Any) -> None: | ||||
|         if session := getattr(self.http, 'session', None): | ||||
|         try: | ||||
|             session = self.http.session | ||||
|             await session.close() | ||||
|         except Exception as exc: | ||||
|             raise Exception('HTTP Session doesn\'t exist') from exc | ||||
| 
 | ||||
|     def __repr__(self) -> str: | ||||
|         return f'<{self.__class__.__name__} has_auth={bool(self._auth)}>' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 VarMonke
						VarMonke