Fix: Prevent EOFError when stdin is not interactive in CSV converter
This commit is contained in:
parent
3584385883
commit
f70e8a8d29
@ -146,4 +146,8 @@ if __name__ == "__main__":
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
finally:
|
||||
input("\\n--- Fertig (Enter zum Schließen) ---")
|
||||
# Fenster offen halten – funktioniert auch bei Windows ohne Console-Problem
|
||||
try:
|
||||
input("\\\\n--- Fertig (Enter zum Schliessen) ---")
|
||||
except EOFError:
|
||||
pass # stdin ist nicht interaktiv (z.B. Pipe), einfach beenden
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user