From d728d3a373ed2fdc9135ce19437460b3e27ab910 Mon Sep 17 00:00:00 2001 From: Eric Rasche Date: Tue, 24 May 2016 21:48:17 +0000 Subject: [PATCH] Check variable's presence before calling str methods --- lib/galaxy/jobs/runners/condor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/jobs/runners/condor.py b/lib/galaxy/jobs/runners/condor.py index f25b7676a66e..d61147566a44 100644 --- a/lib/galaxy/jobs/runners/condor.py +++ b/lib/galaxy/jobs/runners/condor.py @@ -58,8 +58,8 @@ def queue_job( self, job_wrapper ): # get destination params query_params = submission_params(prefix="", **job_destination.params) container = None - universe = query_params.get('universe', False) - if universe.strip().lower() == 'docker': + universe = query_params.get('universe', None) + if universe and universe.strip().lower() == 'docker': container = self.find_container( job_wrapper ) if container: # HTCondor needs the image as 'docker_image'