Permalink
Browse files

Sigh, I should test my changes before I commit...

  • Loading branch information...
1 parent 92c4dc2 commit bb65a7ed6538a606dbfbec478e9611d40623317d @mythmon committed Jul 10, 2010
Showing with 6 additions and 8 deletions.
  1. +6 −8 playlistsync.py
View
@@ -31,12 +31,12 @@ def getMetaData(songPath):
# Hash collision !
# TODO: Do something better about this
raise LookupError()
- except LookupError as e, IOError as e:
- try:
- song.load(songPath)
- f = open(cachePath,'w')
- f.write(song.toJson())
- f.close()
+ except (LookupError, IOError) as e:
+ song.load(songPath)
+ f = open(cachePath,'w')
+ f.write(song.toJson())
+ f.close()
+ # Pass any errors farther up
return song
@@ -45,8 +45,6 @@ def main(plistpath, dest, options=None, flat=False, quiet=False, verbose=False):
flat = options.flat
quiet = options.quiet
verbose = options.verbose
-
- p = Printer(quiet, verbose)
plist = open(plistpath)
srcset = set()

0 comments on commit bb65a7e

Please sign in to comment.