The python script throw Exception saying 'Open port com4, the device connected to the system is not functioning'

When I run the AT script, the script opens the port during the test and throws an exception saying ‘Open port com4, the device connected to the system is not functioning’

So this error is completely outside of PlatformIO?