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:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user