Permalink
Browse files

+exec bits, use /usr/bin/env python, str(errorcode)

  • Loading branch information...
1 parent c499f84 commit 7ab8c295223e080232bd5f4403edf8e6ca0cc7ce @silviu silviu committed Feb 27, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/lyrics.py
View
4 scripts/lyrics.py 100644 → 100755
@@ -1,4 +1,4 @@
-#!usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2009 by Silviu Grijincu <silviu.grijincu@gmail.com>.
@@ -62,7 +62,7 @@ def get_html(self, url):
return (True, html)
except HTTPError, e:
errmsg = 'The server couldn\'t fulfill the request for ' + url
- errmsg += 'Error code: ' + e.code
+ errmsg += 'Error code: ' + str(e.code)
return (False, errmsg)
except URLError, e:
errmsg = 'We failed to reach the server ' + url

0 comments on commit 7ab8c29

Please sign in to comment.