GNOME Bugzilla – Bug 788676
AttributeError: 'str' object has no attribute 'decode'
Last modified: 2017-11-11 10:22:53 UTC
Get the following trace in magnatune plugin, while clicking Magnatune preferences after editing Magnatune username / password. Traceback (most recent call last):
+ Trace 238029
fill_account_details()
(account_type, username, password) = self.account.get()
(username, password) = self.secret.decode("utf-8").split("\n")
Created attachment 361138 [details] [review] self.secret is expected to be a byte array rather than string for subsequent get() calls to work
Created attachment 361592 [details] [review] self.secret is expected to be a byte array rather than string for subsequent get() calls to work
it seemed easier to convert the secret to a string after retrieving it from the secret store, so I did that instead.