From 9252143c6013bf684ed5d4b45e62e8cfa86ff3d4 Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Tue, 10 May 2016 16:15:08 +0200 Subject: [PATCH] Fixed a bug when there is no argument called env --- bob/bio/base/tools/grid.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bob/bio/base/tools/grid.py b/bob/bio/base/tools/grid.py index cb04d88a..3a3218a4 100644 --- a/bob/bio/base/tools/grid.py +++ b/bob/bio/base/tools/grid.py @@ -50,7 +50,10 @@ class GridSubmission: if args.grid is not None: assert isinstance(args.grid, grid.Grid) - self.env = args.env #Fetching the enviroment variable + if(hasattr(args,'env')): + self.env = args.env #Fetching the enviroment variable + else: + self.env = None # find, where jman is installed jmans = bob.extension.find_executable('jman', prefixes = ['bin']) -- GitLab