← Back to team overview

openlp-core team mailing list archive

[Bug 1650910] Re: Not Handling OSErrors

 

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).

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

Title:
  Not Handling OSErrors

Status in OpenLP:
  New

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'

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


References