From e990d550a9499654cdec9f09021e0e05fc4820df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20G=C3=BCnther=20=28aka=2E=20Gunther=2C=20Guenther?=
 =?UTF-8?q?=29?= <siebenkopf@users.noreply.github.com>
Date: Tue, 10 May 2016 10:41:26 -0600
Subject: [PATCH] Revert "Fixed a bug when there is no argument called env"

---
 bob/bio/base/tools/grid.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/bob/bio/base/tools/grid.py b/bob/bio/base/tools/grid.py
index 3a3218a4..cb04d88a 100644
--- a/bob/bio/base/tools/grid.py
+++ b/bob/bio/base/tools/grid.py
@@ -50,10 +50,7 @@ class GridSubmission:
     if args.grid is not None:
       assert isinstance(args.grid, grid.Grid)
       
-      if(hasattr(args,'env')):
-        self.env = args.env #Fetching the enviroment variable
-      else:
-        self.env = None
+      self.env = args.env #Fetching the enviroment variable
 
       # find, where jman is installed
       jmans = bob.extension.find_executable('jman', prefixes = ['bin'])
-- 
GitLab