aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-12-22 06:41:36 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-12-22 06:54:48 +1100
commit72ce5b7726435e16097f605eb432da7e8cc3fdde (patch)
tree2f3e0693bea54d67f43a315f2cac5bb11cee2bfb
parentWhen using -b, fetch atoms from the new atom field or flagged attachment. (diff)
downloadtatt-72ce5b7726435e16097f605eb432da7e8cc3fdde.tar.gz
tatt-72ce5b7726435e16097f605eb432da7e8cc3fdde.tar.bz2
tatt-72ce5b7726435e16097f605eb432da7e8cc3fdde.zip
Avoid traceback when no atoms are found.
-rwxr-xr-xscripts/tatt2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tatt b/scripts/tatt
index 417831e..66d91dc 100755
--- a/scripts/tatt
+++ b/scripts/tatt
@@ -163,7 +163,7 @@ if options.bugnum:
# joint code for -f and -b
##########################
-if not myJob.packageList==None:
+if myJob.packageList is not None and len(myJob.packageList) > 0:
## Assigning jobname
if options.jobname:
myJob.name = options.jobname