David Hoover wrote: > This used to work. Now when I try to upload a directory of files, it gives > this error: > > URL: > https://galaxy.cit.nih.gov/library_common/ldda_info?library_id=a799d38679e985db&show_deleted=False&cntrller=library&folder_id=0a248a1f62a0cc04&use_panels=False&id=dff4190d282fb07a > File > '/gs1/users/galaxy/pro/eggs/WebError-0.8a-py2.6.egg/weberror/evalexception/middleware.py', > line 364 in respond > app_iter = self.application(environ, detect_start_response) ... > File > '/gs1/users/galaxy/pro/database/compiled_templates/library/common/ldda_info.mako.py', > line 224 in render_body > if job.stdout.strip() != '': > AttributeError: 'NoneType' object has no attribute 'strip' > > Huh?
I'm not sure how it ever worked since plenty of jobs don't have stdout/stderr. Anyway, I fixed it in 5078:d83fa80e8321. If you don't want to pull from the development repository, the fix is simple to apply by hand: diff -r 2a3b27d59bd3 templates/library/common/ldda_info.mako --- a/templates/library/common/ldda_info.mako Thu Feb 17 12:05:39 2011 -0500 +++ b/templates/library/common/ldda_info.mako Thu Feb 17 13:56:57 2011 -0500 @@ -117,14 +117,14 @@ </div> %if ldda.creating_job_associations: <% job = ldda.creating_job_associations[0].job %> - %if job.stdout.strip() != '': + %if job.stdout and job.stdout.strip() != '': <div class="form-row"> <label>Job Standard Output</label> <pre>${job.stdout}</pre> <div style="clear: both"></div> </div> %endif - %if job.stderr.strip() != '': + %if job.stderr and job.stderr.strip() != '': <div class="form-row"> <label>Job Standard Error</label> <pre>${job.stderr}</pre> --nate > > David Hoover > Helix Systems Staff > http://helix.nih.gov > _______________________________________________ > To manage your subscriptions to this and other Galaxy lists, please use the > interface at: > > http://lists.bx.psu.edu/ _______________________________________________ To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/