diff options
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interface-openvpn.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf_mode/interface-openvpn.py b/src/conf_mode/interface-openvpn.py index c91bc3900..57b07e187 100755 --- a/src/conf_mode/interface-openvpn.py +++ b/src/conf_mode/interface-openvpn.py @@ -916,7 +916,12 @@ def apply(openvpn): # sleep 250ms sleep(0.250) - Interface(openvpn['intf']).set_alias(openvpn['description']) + try: + # we need to catch the exception if the interface is not up due to + # reason stated above + Interface(openvpn['intf']).set_alias(openvpn['description']) + except: + pass return None |