Traceback in FTW on download error (404)

Bug #1421561 reported by Tomas Groth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Low
Phill

Bug Description

When download in the FTW fails, the traceback below has been reported.
First of all a 404 shouldn't be possible in FTW since we should make sure the links work!
The actual traceback should be caught, but the ConnectionException isn't imported in the file...

    File
"D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\firsttimeform.py", line
436, in _get_file_size
    File "c:\Python33\lib\urllib\request.py", line 156, in urlopen
    File "c:\Python33\lib\urllib\request.py", line 475, in open
    File "c:\Python33\lib\urllib\request.py", line 587, in http_response
    File "c:\Python33\lib\urllib\request.py", line 513, in error
    File "c:\Python33\lib\urllib\request.py", line 447, in _call_chain
    File "c:\Python33\lib\urllib\request.py", line 595, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
    File
"D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\firsttimeform.py", line
334, in on_current_id_changed
    File
"D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\firsttimeform.py", line
491, in _pre_wizard
    File
"D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\firsttimeform.py", line
439, in _get_file_size
NameError: global name 'ConnectionException' is not defined

Related branches

Tomas Groth (tomasgroth)
Changed in openlp:
assignee: nobody → Tomas Groth (tomasgroth)
status: New → In Progress
Phill (phill-ridout)
Changed in openlp:
assignee: Tomas Groth (tomasgroth) → Phill (phill-ridout)
importance: Undecided → Low
Tim Bentley (trb143)
Changed in openlp:
milestone: none → 2.1.3
status: In Progress → Fix Committed
Tim Bentley (trb143)
Changed in openlp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.