Fix NoSuchUser being raised with None due to username/id
This commit is contained in:
		
							parent
							
								
									faf893a428
								
							
						
					
					
						commit
						072e9a7430
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -987,7 +987,7 @@ class PDBUserMixin: | ||||||
|         if fetch is not None: |         if fetch is not None: | ||||||
|             return objects.User(self, fetch) |             return objects.User(self, fetch) | ||||||
|         else: |         else: | ||||||
|             raise exceptions.NoSuchUser(username) |             raise exceptions.NoSuchUser(username or id) | ||||||
| 
 | 
 | ||||||
|     def get_user_id_or_none(self, user): |     def get_user_id_or_none(self, user): | ||||||
|         ''' |         ''' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue