← Back to team overview

openlp-core team mailing list archive

[Bug 1410694] Re: global name 'ConnectionException' is not defined in check_latest_version

 

** Changed in: openlp
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1410694

Title:
  global name 'ConnectionException' is not defined in
  check_latest_version

Status in OpenLP - Worship Presentation Software:
  Fix Released

Bug description:
  Related to: https://bugs.launchpad.net/openlp/+bug/1409627

  Once OpenLP has started, and ti attempts to check for updates I get
  the following in the log (see below). Shortly OpenLP crashes and
  causes windows to show an "OpenLP has crashed dialog"

  For 2.2 we should just catch URLError & ConnectionError

  For the next version we could rewrite this to make use of get_webpage
  see( https://bugs.launchpad.net/openlp/+bug/1410693 )


  2015-01-14 08:20:39,395 root                                                    CRITICAL Traceback (most recent call last):
    File "D:\OpenLP_Development\OpenLP_Code\bug-1409627\openlp\core\utils\__init__.py", line 260, in check_latest_version
    File "c:\Python33\lib\urllib\request.py", line 156, in urlopen
      return opener.open(url, data, timeout)
    File "c:\Python33\lib\urllib\request.py", line 475, in open
      response = meth(req, response)
    File "c:\Python33\lib\urllib\request.py", line 587, in http_response
      'http', request, response, code, msg, hdrs)
    File "c:\Python33\lib\urllib\request.py", line 513, in error
      return self._call_chain(*args)
    File "c:\Python33\lib\urllib\request.py", line 447, in _call_chain
      result = func(*args)
    File "c:\Python33\lib\urllib\request.py", line 595, in http_error_default
      raise HTTPError(req.full_url, code, msg, hdrs, fp)
  urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "D:\OpenLP_Development\OpenLP_Code\bug-1409627\openlp\core\utils\__init__.py", line 121, in run
    File "D:\OpenLP_Development\OpenLP_Code\bug-1409627\openlp\core\utils\__init__.py", line 261, in check_latest_version
  NameError: global name 'ConnectionException' is not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1410694/+subscriptions


References