last changes
This commit is contained in:
@@ -803,6 +803,10 @@ def main(argv: list[str] | None = None) -> int:
|
||||
return 1
|
||||
|
||||
csv_file = resolve_input(args.file)
|
||||
if csv_file.suffix.lower() != ".csv":
|
||||
print(f"FEHLER: --file erwartet eine CSV-Datei, keine '{csv_file.suffix}'-Datei: "
|
||||
f"{csv_file}", file=sys.stderr)
|
||||
return 1
|
||||
if not csv_file.is_file():
|
||||
print(f"FEHLER: CSV nicht gefunden: {csv_file}", file=sys.stderr)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user