From 88ef6daa8a0c2bb63c63a636688268316debb7d2 Mon Sep 17 00:00:00 2001 From: Jordan Rodgers Date: Thu, 8 Mar 2018 01:02:53 -0500 Subject: [PATCH] check if job before verifying args --- proxstar/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxstar/user.py b/proxstar/user.py index dfa19b9..5c0d6f1 100644 --- a/proxstar/user.py +++ b/proxstar/user.py @@ -40,7 +40,7 @@ class User(object): pending_vms = [] for job in jobs: job = q.fetch_job(job) - if len(job.args) > 2: + if job and len(job.args) > 2: if job.args[0] == self.name or job.args[2] == self.name: vm_dict = dict() vm_dict['name'] = job.args[1]