Confused about accessing properties of a Release #59
Unanswered
Simon-Dixon
asked this question in
Support
Replies: 1 comment 1 reply
-
hi, on vaccation and mobile currently. maybe I'll try to reproduce in next days. Could you also wrap all your code and outputs into code block (triple backticks) It's hard to read at least on my mobile here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to using the discogs_client (and relatively new to python), and I'm confused by an error I am getting. I want to search for a Release and store its "id" so that I can look it up later via the id. But when I look it up again, it is missing most of its properties. What am I doing wrong? Here's some code to reproduce the problem (d is my discogs_client.Client):
and the corresponding output:
<Release 8212964 'E.S.T. - Seven Days Of Falling'>
<Release 8212964 'Seven Days Of Falling'>
<class 'discogs_client.models.Release'>
<class 'discogs_client.models.Release'>
True
False
Catno: 215-2007
KeyError Traceback (most recent call last)
in
15 print(release1 is release2)
16 print("Catno:", release1.data["catno"])
---> 17 print("Catno:", release2.data["catno"])
18 print(release1.data.keys())
19 print(release2.data.keys())
KeyError: 'catno'
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions