Not Handling OSErrors

Bug #1650910 reported by Raoul Snyman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenLP
Fix Committed
Low
Phill

Bug Description

We don't handle OSErrors. Things like "No space left on device" or "Permission denied (read only file)".

Traceback (most recent call last):
  File "openlp/core/ui/servicemanager.py", line 720, in decide_save_method
  File "openlp/core/ui/servicemanager.py", line 497, in save_file
  File "tempfile.py", line 278, in mkstemp
  File "tempfile.py", line 207, in _mkstemp_inner
OSError: [Errno 28] No space left on device: '/var/folders/j2/wmnnfhhn7j32slfp0t7zfy6h0000gn/T/openlp_rap_a2ly.osz'

Traceback (most recent call last):
  File "D:\OpenLP_Development\OpenLP_Code\2.2\openlp\core\ui\servicemanager.py", line 723, in decide_save_method
  File "D:\OpenLP_Development\OpenLP_Code\2.2\openlp\core\ui\servicemanager.py", line 662, in save_local_file
  File "c:\Python33\lib\shutil.py", line 227, in copy
  File "c:\Python33\lib\shutil.py", line 110, in copyfile
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\NCF-AV\\Documents\\OpenLP\\Services\\(template).oszl'

Related branches

Revision history for this message
Timothy Cooper (timothycooper) wrote :

The Traceback shown here came from our church's laptop (unless someone else also named their user account NCF-AV). I'll provide more info if requested. We currently use a Read Only system flag to prevent file "(template).oszl" from being accidentally overwritten (since OpenLP doesn't have Templates at this time).

Tim Bentley (trb143)
Changed in openlp:
status: New → Won't Fix
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

Actually, my point still stands. An exception dialog should not show up, we should inform the user of the problem instead.

Changed in openlp:
status: Won't Fix → Confirmed
Phill (phill-ridout)
Changed in openlp:
importance: Undecided → Low
Phill (phill-ridout)
Changed in openlp:
status: Confirmed → In Progress
assignee: nobody → Phill (phill-ridout)
Phill (phill-ridout)
Changed in openlp:
status: In Progress → Fix Committed
Tim Bentley (trb143)
Changed in openlp:
milestone: none → 2.9.1
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.