#1498 Handle README errors more gracefully

v1.0.0
closed
sf-1 (616)
General
nobody
2015-08-20
2011-02-14
No

mengin/git/README is an empty file. We get this error. Allura or pypeline should handle this more gracefully.

Module /var/local/allura/Allura/allura/templates/repo/tree.html:30 in block "content"
<<  {% if name %}
         <h1>Read Me</h1>
         {{g.pypeline_markup.render(name, text)|safe}}
       {% endif %}
       {% endblock %}
>>  {{g.pypeline_markup.render(name, text)|safe}}
Module pypeline.markup:47 in render
<<          '''
               if not content:
                   with open(filename, 'r') as f:
                       content = f.read()
               content = self.unicode(content)
>>  with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: u'README'

Related

Tickets: #1588

Discussion

  • Kyle Adams - 2011-02-18
    • assigned_to: Kyle Adams
     
  • Kyle Adams - 2011-02-18
    • status: open --> in-progress
     
  • Dave Brondsema

    Dave Brondsema - 2011-02-18
    • size: --> 1
     
  • Kyle Adams - 2011-02-22
    • status: in-progress --> open
     
  • Dave Brondsema

    Dave Brondsema - 2011-02-24
    • size: 2 --> 1
     
  • Rick Copeland - 2011-03-01
    • milestone: mar-10 --> mar-03
     
  • Rick Copeland - 2011-03-01

    Pulled forward as a likely dependency of [#1588]

     

    Related

    Tickets: #1588

  • Jenny Steele - 2011-03-01
    • status: open --> in-progress
    • assigned_to: Kyle Adams --> Jenny Steele
     
  • Jenny Steele - 2011-03-03
    • status: in-progress --> closed
     

Log in to post a comment.