sirup.raise_ovpn_exceptions

Functions

raise_ovpn_exceptions(stdout, stderr, log)

Raise exceptions depending on the output and log of the openvpn commands.

Module Contents

sirup.raise_ovpn_exceptions.raise_ovpn_exceptions(stdout, stderr, log)[source]

Raise exceptions depending on the output and log of the openvpn commands.

Raises:
  • FileNotFoundError – when the authentication file for openvpn cannot be found.

  • RuntimeError

    • when there is a problem with the configuration file

    • in any other case