From bc368d3a91b1612e4cb28c295322d549d6159201 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Sun, 12 Jul 2009 21:27:48 +0200 Subject: [PATCH] Some minor fixes. --- openlp/plugins/bibles/lib/bibleHTTPimpl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openlp/plugins/bibles/lib/bibleHTTPimpl.py b/openlp/plugins/bibles/lib/bibleHTTPimpl.py index db055ccef..4369506ac 100644 --- a/openlp/plugins/bibles/lib/bibleHTTPimpl.py +++ b/openlp/plugins/bibles/lib/bibleHTTPimpl.py @@ -97,7 +97,7 @@ class CWExtract(BibleCommon): """ log.debug(u'get_bible_chapter %s,%s,%s,%s', version, bookid, bookname, chapter) bookname = bookname.replace(u' ', '') - urlstring = u'http://bible.crosswalk.com/OnlineStudyBible/bible.cgi?word='+bookname+u'+'+unicode(chapter)+u'&version='+version + urlstring = u'http://bible.crosswalk.com/OnlineStudyBible/bible.cgi?word=%s+%d&version=%s' % (bookname, chapter, version) xml_string = self._get_web_text(urlstring, self.proxyurl) #log.debug(u'Return data %s', xml_string) ## Strip Book Title from Heading to return it to system @@ -206,7 +206,7 @@ class BibleHTTPImpl(): ev = CWExtract(self.proxyurl) else: ev = BGExtract(self.proxyurl) - return ev.get_bible_chapter(self.bibleid, bookid, bookname, chapter) - except: - log.error(u'Error thrown = %s', sys.exc_info()[1]) + except Exception, e: + log.error(u'Error thrown = %s', e.args[0]) + print e