added filecheck on read_ascii_file function
1 unresolved thread
1 unresolved thread
lagt til filecheck og en try open guard på funksjonen read_ascii_file
Merge request reports
Activity
Filter activity
requested review from @per.aaslid
assigned to @Alexander.Overgard
195 195 return commands 196 196 197 197 def read_ascii_file(self, file_path:str) -> None: 198 if not os.path.exists(file_path): 199 raise FileNotFoundError("Provided file does not exist", file_path) 200 try: 201 f = open(file_path, "r") 202 except OSError: 203 print("Could not open/read file:", file_path) 204 sys.exit() changed this line in version 2 of the diff