{"action":"opened","issue":{"url":"https://api.github.com/repos/xlcnd/isbnlib/issues/14","labels_url":"https://api.github.com/repos/xlcnd/isbnlib/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/xlcnd/isbnlib/issues/14/comments","events_url":"https://api.github.com/repos/xlcnd/isbnlib/issues/14/events","html_url":"https://github.com/xlcnd/isbnlib/issues/14","id":56930289,"number":14,"title":"Better error handling on ISBN conversion","user":{"login":"EmilStenstrom","id":224130,"avatar_url":"https://avatars.githubusercontent.com/u/224130?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilStenstrom","html_url":"https://github.com/EmilStenstrom","followers_url":"https://api.github.com/users/EmilStenstrom/followers","following_url":"https://api.github.com/users/EmilStenstrom/following{/other_user}","gists_url":"https://api.github.com/users/EmilStenstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilStenstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilStenstrom/subscriptions","organizations_url":"https://api.github.com/users/EmilStenstrom/orgs","repos_url":"https://api.github.com/users/EmilStenstrom/repos","events_url":"https://api.github.com/users/EmilStenstrom/events{/privacy}","received_events_url":"https://api.github.com/users/EmilStenstrom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-07T23:15:56Z","updated_at":"2015-02-07T23:15:56Z","closed_at":null,"body":"I tried converting some ISBNs like this:\r\n```python\r\n>>> import isbnlib\r\n>>> isbnlib.to_isbn13(\"91-43-01019-9\")\r\n'91-43-01019-9'\r\n```\r\nHuh? That doesn't look like an ISBN13? After some thinking it seems I should have stripped the dashes before trying to convert: \r\n```python\r\n>>> isbnlib.to_isbn13(\"9143010199\")\r\n'9789143010190'\r\n```\r\nBut then again I lose the dashes, that makes ISBNs more readable. \r\n\r\nI would have expected the first version to work, and give me a formatted ISBN13 back (like on [ISBN.org converter](http://www.isbn.org/ISBN_converter)). \r\n\r\nOr am I simply doing it wrong?"}}