def createProcess(self, filename): try: proc = Process(filename, self.next_pid, self.frgrnd) self.frgrnd.append(proc.getMain()) self.next_pid += 1 self.total_threads += 1 except ex.ImproperInstructionError: DebugPrint(f"[Dispatcher] {filename} failed initialization") gui_mailbox.put(c.Cmd_Error(f"{filename} is miswritten, please update and try again")) except ex.MemoryAllocationError: self.wait_mem.append(filename) # including this just to cover my bases except: DebugPrint(f"[Dispatcher] {filename} failed initialization... weirdly") gui_mailbox.put(c.Cmd_Error(f"{filename} failed init... weirdly ()"))