use discard
instead of remove
in the missing_paths
set
This commit is contained in:
parent
de52daceaa
commit
6904612d97
@ -93,7 +93,7 @@ def run(verbosity=1):
|
|||||||
"%Y-%m-%d %H:%M:%S%z"
|
"%Y-%m-%d %H:%M:%S%z"
|
||||||
)
|
)
|
||||||
p_uni = p.decode('utf8')
|
p_uni = p.decode('utf8')
|
||||||
missing_paths.remove(p_uni)
|
missing_paths.discard(p_uni)
|
||||||
cur.execute('SELECT mtime, hash, timestamp FROM bitrot WHERE '
|
cur.execute('SELECT mtime, hash, timestamp FROM bitrot WHERE '
|
||||||
'path=?', (p_uni,))
|
'path=?', (p_uni,))
|
||||||
row = cur.fetchone()
|
row = cur.fetchone()
|
||||||
|
Reference in New Issue
Block a user