Don't deal with invalid unicode
This commit is contained in:
		@ -49,7 +49,10 @@ class TreeWalker:
 | 
				
			|||||||
			except KeyboardInterrupt:
 | 
								except KeyboardInterrupt:
 | 
				
			||||||
				raise
 | 
									raise
 | 
				
			||||||
			except:
 | 
								except:
 | 
				
			||||||
				pass
 | 
									next_level()
 | 
				
			||||||
 | 
									message("unicode error", entry.decode(sys.getfilesystemencoding(), "replace"))
 | 
				
			||||||
 | 
									back_level()
 | 
				
			||||||
 | 
									continue
 | 
				
			||||||
			entry = os.path.join(path, entry)
 | 
								entry = os.path.join(path, entry)
 | 
				
			||||||
			if os.path.isdir(entry):
 | 
								if os.path.isdir(entry):
 | 
				
			||||||
				album.add_album(self.walk(entry))
 | 
									album.add_album(self.walk(entry))
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user