{"action":"created","issue":{"url":"https://api.github.com/repos/Parisson/Telemeta/issues/95","repository_url":"https://api.github.com/repos/Parisson/Telemeta","labels_url":"https://api.github.com/repos/Parisson/Telemeta/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/Parisson/Telemeta/issues/95/comments","events_url":"https://api.github.com/repos/Parisson/Telemeta/issues/95/events","html_url":"https://github.com/Parisson/Telemeta/issues/95","id":129927334,"number":95,"title":"coercing to Unicode: need string or buffer, NoneType found","user":{"login":"AnasGhrab","id":2726240,"avatar_url":"https://avatars.githubusercontent.com/u/2726240?v=3","gravatar_id":"","url":"https://api.github.com/users/AnasGhrab","html_url":"https://github.com/AnasGhrab","followers_url":"https://api.github.com/users/AnasGhrab/followers","following_url":"https://api.github.com/users/AnasGhrab/following{/other_user}","gists_url":"https://api.github.com/users/AnasGhrab/gists{/gist_id}","starred_url":"https://api.github.com/users/AnasGhrab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnasGhrab/subscriptions","organizations_url":"https://api.github.com/users/AnasGhrab/orgs","repos_url":"https://api.github.com/users/AnasGhrab/repos","events_url":"https://api.github.com/users/AnasGhrab/events{/privacy}","received_events_url":"https://api.github.com/users/AnasGhrab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Parisson/Telemeta/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-30T01:48:13Z","updated_at":"2016-06-16T08:05:44Z","closed_at":null,"body":"J'ai fait un `git pull` du master, puis `sudo python setup.py install`, l'accès au site n'est plus possible : \r\n\r\n```\r\nRequest URL:\thttp://phonotheque.cmam.tn/\r\nDjango Version:\t1.6.11\r\nException Type:\tTypeError\r\nException Value:\t\r\ncoercing to Unicode: need string or buffer, NoneType found\r\nException Location:\t/usr/lib/python2.7/os.py in walk, line 276\r\nPython Executable:\t/usr/bin/python\r\nPython Version:\t2.7.3\r\n```"},"comment":{"url":"https://api.github.com/repos/Parisson/Telemeta/issues/comments/226416179","html_url":"https://github.com/Parisson/Telemeta/issues/95#issuecomment-226416179","issue_url":"https://api.github.com/repos/Parisson/Telemeta/issues/95","id":226416179,"user":{"login":"AnasGhrab","id":2726240,"avatar_url":"https://avatars.githubusercontent.com/u/2726240?v=3","gravatar_id":"","url":"https://api.github.com/users/AnasGhrab","html_url":"https://github.com/AnasGhrab","followers_url":"https://api.github.com/users/AnasGhrab/followers","following_url":"https://api.github.com/users/AnasGhrab/following{/other_user}","gists_url":"https://api.github.com/users/AnasGhrab/gists{/gist_id}","starred_url":"https://api.github.com/users/AnasGhrab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnasGhrab/subscriptions","organizations_url":"https://api.github.com/users/AnasGhrab/orgs","repos_url":"https://api.github.com/users/AnasGhrab/repos","events_url":"https://api.github.com/users/AnasGhrab/events{/privacy}","received_events_url":"https://api.github.com/users/AnasGhrab/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T08:05:44Z","updated_at":"2016-06-16T08:05:44Z","body":"Ce problème `django coercing to Unicode: need string or buffer, NoneType found` est encore présent et il m'empêche d'être à la dernière version. Ça marche quand je me place sur commit datant du mois de janvier. Je ne sais plus à quelle version exactement ça bloque.\r\n\r\nC'est assez certain que c'est en relation avec cette réponse que je trouve sur un forum :\r\n\r\n```\r\nThis error happens when you have a ```__unicode__``` method that is a returning a field that is not entered. Any blank field is ```None``` and Python cannot convert ```None```, so you get the error.\r\n\r\nIn your case, the problem most likely is with the PCE model's ```__unicode__``` method, specifically the field its returning.\r\n\r\nYou can prevent this by returning a default value:\r\n\r\ndef __unicode__(self):\r\n   return unicode(self.some_field) or u''\r\n```"}}
{"actor":{"display_login":"AnasGhrab"}}