[hg] galaxy 3361: Fix for a bug in library uploads introduced wi...

details: http://www.bx.psu.edu/hg/galaxy/rev/606686b073f3 changeset: 3361:606686b073f3 user: Nate Coraor <nate@bx.psu.edu> date: Tue Feb 09 13:40:01 2010 -0500 description: Fix for a bug in library uploads introduced with recent PBS job name changes diffstat: lib/galaxy/jobs/__init__.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diffs (14 lines): diff -r b4c811246b1d -r 606686b073f3 lib/galaxy/jobs/__init__.py --- a/lib/galaxy/jobs/__init__.py Tue Feb 09 11:21:53 2010 -0500 +++ b/lib/galaxy/jobs/__init__.py Tue Feb 09 13:40:01 2010 -0500 @@ -751,7 +751,9 @@ @property def user( self ): job = self.sa_session.query( model.Job ).get( self.job_id ) - if job.history.user is None: + if not job.history: + return 'non_history_job' + elif job.history.user is None: return 'anonymous@' + job.galaxy_session.remote_addr.split()[-1] else: return job.history.user.email
participants (1)
-
Nate Coraor