Hi,
I was trying to create a client to Gracenote API and I was getting this error.
G:\Workspace\SongRecommender\pygn.py in register(clientID)
97
98
---> 99 return userID
100 #*****************************************************************************************************************************************
101 # Added by Fabian in order to cover the Rhythm API
UnboundLocalError: local variable 'userID' referenced before assignment
Later, I found that the response to the query was having an error attribute.

Shouldn't the library handle this in pygn.py#97 with an else?