mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-11 02:49:56 -06:00
Merge upstream main into docking-adoption
This commit is contained in:
Binary file not shown.
@@ -14,8 +14,7 @@ def _jsonl_path(arg):
|
||||
if not path.is_file():
|
||||
sys.exit(f"not a readable file: {arg}")
|
||||
try:
|
||||
with path.open("rb"):
|
||||
pass
|
||||
path.open("rb").close()
|
||||
except OSError:
|
||||
sys.exit(f"not a readable file: {arg}")
|
||||
return path
|
||||
|
||||
Reference in New Issue
Block a user