The fix here is trivial "if e.returncode in [1, 4]:", but we need to understand why it's returning a different error code and if these are the only two possibilities for return codes that we should be catching and handling in this way.
The fix here is trivial "if e.returncode in [1, 4]:", but we need to understand why it's returning a different error code and if these are the only two possibilities for return codes that we should be catching and handling in this way.