Describe the bug
Currently, the delete_empty_dirs() function raises an error, when an empty directory cannot be deleted. This error is not properly caught. Instead, the error message attempts to print a variable path which is not correctly set in line 209 - however, the message e already contains that path.