mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Includes exception information during exception listing folders
Co-authored-by: Florian <florian.brandes@posteo.de>
This commit is contained in:
		 Trenton Holmes
					Trenton Holmes
				
			
				
					committed by
					
						 Trenton Holmes
						Trenton Holmes
					
				
			
			
				
	
			
			
			 Trenton Holmes
						Trenton Holmes
					
				
			
						parent
						
							06cfba8c7e
						
					
				
				
					commit
					57f32e5360
				
			| @@ -198,10 +198,11 @@ class MailAccountHandler(LoggingMixin): | ||||
|             try: | ||||
|                 for folder_info in M.folder.list(): | ||||
|                     self.log("info", f"Located folder: {folder_info.name}") | ||||
|             except Exception: | ||||
|             except Exception as e: | ||||
|                 self.log( | ||||
|                     "error", | ||||
|                     "Exception during folder listing, unable to provide list folders", | ||||
|                     "Exception during folder listing, unable to provide list folders: " | ||||
|                     + str(e), | ||||
|                 ) | ||||
|  | ||||
|             raise MailError( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user