Skip to content

Commit

Permalink
don't try to change url when None given
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyJD committed Jun 13, 2013
1 parent d4d3f67 commit c3d6cad
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions discid/disc.py
Expand Up @@ -274,10 +274,13 @@ def submission_url(self):
This is a :obj:`unicode` or :obj:`str <python:str>` object.
"""
url = self._get_submission_url()
# update submission url, which saves a couple of redirects
url = url.replace("//mm.", "//")
url = url.replace("/bare/cdlookup.html", "/cdtoc/attach")
return url
if url is None:
return None
else:
# update submission url, which saves a couple of redirects
url = url.replace("//mm.", "//")
url = url.replace("/bare/cdlookup.html", "/cdtoc/attach")
return url

@property
def first_track_num(self):
Expand Down

0 comments on commit c3d6cad

Please sign in to comment.