question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Usage example from README not works

See original GitHub issue

Am i do something wrong in this?

Python 3.6.8 (default, Aug 20 2019, 17:12:48) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import deezer
>>> client = deezer.Client()
>>> client.get_album(12).title
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Resource' object has no attribute 'title'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nrebenacommented, Sep 25, 2019

The problem here is that the album 12 does not exist, and the method default to returning Ressource type.

https://api.deezer.com/album/12
{"error":{"type":"DataException","message":"no data","code":800}}

So this issue is more about error handling. There are many ways one can go there:

  • This is not a bug, there is effectively no title to be returned. Let’s change the README to an existing album id
  • Raise an error when getting an error from the API
  • Other…
0reactions
allcontributors[bot]commented, Oct 1, 2019

@browniebroke

I’ve put up a pull request to add @spvkgn! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Image not showing up in README.md on GitHub
I was facing the problem, especially when working with the single image. Example: <p> <img src="relativePath/file.png" width="220" ...
Read more >
How to Write a Good README File for Your GitHub Project
In simple words, we can describe a README file as a guide that gives users a detailed description of a project you have...
Read more >
README File – Everything you Need to Know - Great Learning
A README file is a text file that describes and launches a project. It comprises information that is frequently needed to grasp the...
Read more >
Markdown relative link to image and other readme does ... - Jira
Same issue as others mentioned. Relative URLs do not work when the README is displayed in the directory/overview. But works if I am...
Read more >
Project Settings - ReadMe Documentation
Changing this does not impact your subdomain. ... To see how the import process works, you can use example zipped files for single...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found