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
#4
Get rid of the try/except. Check the return value of subprocess.call(instruction) to determine if the instruction was successful or not. An instruction that returns an error does not raise an exception.
tester_V likes this post
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 deanhystad - Mar-01-2024, 11:36 PM

Forum Jump:

User Panel Messages

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