Skip to content

Commit

Permalink
Fall back to not submitting a user-agent if py-mb2 doesn't support it
Browse files Browse the repository at this point in the history
  • Loading branch information
mineo committed Dec 11, 2011
1 parent f3a9210 commit 70ab03b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions isrcsubmit-cdrdao.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ def main():
except DiscError, e:
exit("DiscID calculation failed: %s" % e)

ws = WebService(username=args.user, password=password,
userAgent="isrcsubmit_cdrao")
try:
ws = WebService(username=args.user, password=password,
userAgent="isrcsubmit_cdrao")
except TypeError:
ws = WebService(username=args.user, password=password)

q = Query(ws)

filter = ReleaseFilter(discId=disc.id)
Expand Down

0 comments on commit 70ab03b

Please sign in to comment.