details: http://www.bx.psu.edu/hg/galaxy/rev/583fab0515a0 changeset: 2936:583fab0515a0 user: Nate Coraor <nate@bx.psu.edu> date: Fri Oct 30 12:51:07 2009 -0400 description: Try block around the stat for setting permissions and groups diffstat: lib/galaxy/util/__init__.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diffs (16 lines): diff -r da1a03642283 -r 583fab0515a0 lib/galaxy/util/__init__.py --- a/lib/galaxy/util/__init__.py Fri Oct 30 12:41:17 2009 -0400 +++ b/lib/galaxy/util/__init__.py Fri Oct 30 12:51:07 2009 -0400 @@ -488,7 +488,11 @@ umask-friendly permissions fixing """ perms = unmasked_perms & ~umask - st = os.stat( path ) + try: + st = os.stat( path ) + except OSError, e: + log.exception( 'Unable to set permissions or group on %s' % path ) + return # fix modes if stat.S_IMODE( st.st_mode ) != perms: try: