From db95e880b2ca24f2a09916cd2e47c09ec8bfc738 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 28 Feb 2023 22:19:06 +0000 Subject: [PATCH] thats not how it works --- copyparty/up2k.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index b520711a..5f6f2f9c 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -463,11 +463,9 @@ class Up2k(object): q = "select * from up where substr(w,1,16)=? and +rd=? and +fn=?" ups = [] for wrf in wrfs: - try: - # almost definitely exists; don't care if it doesn't - ups.append(cur.execute(q, wrf).fetchone()) - except: - pass + up = cur.execute(q, wrf).fetchone() + if up: + ups.append(up) # t1 = time.time() # self.log("mapped {} warks in {:.3f} sec".format(len(wrfs), t1 - t0)) @@ -2332,7 +2330,7 @@ class Up2k(object): if not n4g: raise - if cur: + if cur and not self.args.nw: zs = "prel name lmod size ptop vtop wark host user addr at" a = [job[x] for x in zs.split()] self.db_add(cur, vfs.flags, *a)