From a152af6bac524ab556bd54722aac7860b158288e Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Sat, 24 Feb 2024 10:44:11 -0500 Subject: [PATCH] Fix open empty file --- src/jam | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jam b/src/jam index 71afc15..258e38f 100755 --- a/src/jam +++ b/src/jam @@ -61,10 +61,10 @@ def read_cli(): else: openfile=arg (ret,message)=filecheck.check_edit(openfile) - preread_conf(openfile) if ret<0: print(message,file=sys.stderr) exit(-1) + preread_conf(openfile) # read command line arguments from configuration file def preread_conf(file): @@ -72,8 +72,7 @@ def preread_conf(file): try: ff=open(file,"r") except: - print("error: could not read file '"+file+"' (this should not happen and is probably a bug)", file=sys.stderr) - exit(-1) + return # counter i=0