Yes, it won't stop the process from asking. But you don't have to actually answer. If you don't want to see it ask, add
So something like:
capture_output=True
to the options. So something like:
import subprocess try: subprocess.call("net use U: "+"\\\\"+itm+"\\c$\\SMTS\\TDR_Logs", shell=True, timeout=10, capture_output=True) except subprocess.TimeoutExpired: print(f"Server {itm} took too long to mount. Skipping...") continue #or break or return or whatever appropriate to go to the next server....