Skip to content

Commit

Permalink
made it easier to track what files have been skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Mateescu committed Nov 29, 2011
1 parent 51dc508 commit bd19367
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions discogsparser.py
Expand Up @@ -50,10 +50,10 @@ def parseArtists(parser, exporter):
artist_file = in_file

if artist_file is None:
print "No artist file specified."
#print "No artist file specified."
return
elif not path.exists(artist_file):
print "File %s doesn't exist:" % artist_file
#print "File %s doesn't exist:" % artist_file
return

from discogsartistparser import ArtistHandler
Expand All @@ -79,7 +79,11 @@ def parseLabels(parser, exporter):
elif in_file is not None:
label_file = in_file

if label_file is None or not path.exists(label_file):
if label_file is None:
#print "No label file specified."
return
elif not path.exists(label_file):
#print "File %s doesn't exist:" % label_file
return

from discogslabelparser import LabelHandler
Expand All @@ -100,8 +104,13 @@ def parseReleases(parser, exporter):
elif in_file is not None:
release_file = in_file

if release_file is None or not path.exists(release_file):
if release_file is None:
#print "No release file specified."
return
elif not path.exists(release_file):
#print "File %s doesn't exist:" % release_file
return

from discogsreleaseparser import ReleaseHandler
releaseHandler = ReleaseHandler(exporter, stop_after=options.n, ignore_missing_tags = options.ignore_unknown_tags)
parser.setContentHandler(releaseHandler)
Expand Down

0 comments on commit bd19367

Please sign in to comment.