Skip to content

Commit

Permalink
I haven't found any situation in which can be UnknownIdException rais…
Browse files Browse the repository at this point in the history
…ed, so I removed this lines. If anyone find such situation, please return it back and write appropriate test case.
  • Loading branch information
yetty committed Aug 20, 2013
1 parent 08641af commit 654d7c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions embed_video/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ def get_code(self):

if not code:
parse_data = urlparse.urlparse(self._url)
try:
code = urlparse.parse_qs(parse_data.query)['v'][0]
except KeyError:
raise UnknownIdException
code = urlparse.parse_qs(parse_data.query)['v'][0]

return code

Expand Down

0 comments on commit 654d7c9

Please sign in to comment.