scripts: Fixed some issues with -k/--keep-open

- Fixed a NameError in watch.py caused by an outdated variable name
  (renamed paths -> keep_open_paths). Yay for dynamic typing.

- Fixed fieldnames is None issue when csv file is empty.
This commit is contained in:
Christopher Haster
2025-03-14 00:49:21 -05:00
parent 3a290c41ab
commit 0dbd1561ae
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ def main(command, *,
re.sub('^-.', '', p),
re.sub('^--[^=]+=', '', p)}:
if p and os.path.exists(p):
paths.add(p)
keep_open_paths.add(p)
returncode = 0
try: