#17308: Fix sws2rst
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-6.4
      Component:  scripts            |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Karl-Dieter        |    Reviewers:
  Crisman                            |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  6eed79ee5a93f42f10389978370ba4994a3d8a02
  u/jdemeyer/ticket/17308            |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Do you happen to know why the `try`/`except` was put here originally?
 {{{
 #!python
     #"data" dir
     data_path = os.path.join(tempname,'sage_worksheet','data')
     if os.path.exists(data_path):
         for image in os.listdir(data_path):
             try:
                 shutil.move(os.path.join(data_path, image),
 os.path.join(images_dir, image.replace(' ','_')))
             except shutil.Error:
                 pass
 }}}

 I cannot see why this move should generate an error which can be ignored,
 so I removed the exception handling.

--
Ticket URL: <http://trac.sagemath.org/ticket/17308#comment:12>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to