Skip to content

Commit

Permalink
Merge pull request #862 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Capture the raised exception
  • Loading branch information
tommysolsen authored Jul 6, 2018
2 parents 5fd76ae + 67ece36 commit f108f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mps_youtube/commands/lastfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def init_network(verbose=True):
password_hash=password)
if verbose:
g.message = "Last.fm authentication successful!"
except (pylast.WSError, pylast.MalformedResponseError, pylast.NetworkError):
except (pylast.WSError, pylast.MalformedResponseError, pylast.NetworkError) as e:
if verbose:
g.message = "Last.fm connection error: %s" % (str(e))

Expand Down

0 comments on commit f108f06

Please sign in to comment.