Python Forum
Re Try loop for "net use..." failures
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re Try loop for "net use..." failures
#9
Gribouillis, thank you for the snipped, but it produces errors:

line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['net', 'use', 'Z:', '/delete', '/yes']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:
line 94, in <module>
except CalledProcessError as ss:
NameError: name 'CalledProcessError' is not defined

Thank you!
Reply


Messages In This Thread
Re Try loop for "net use..." failures - by tester_V - Mar-01-2024, 11:08 PM
RE: Re Try loop for "net use..." failures - by tester_V - Mar-02-2024, 07:50 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020