summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/system-login-radius.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/conf_mode/system-login-radius.py b/src/conf_mode/system-login-radius.py
index 52010b6ea..8f19bae65 100755
--- a/src/conf_mode/system-login-radius.py
+++ b/src/conf_mode/system-login-radius.py
@@ -133,8 +133,10 @@ def apply(radius):
/etc/nsswitch.conf"
os.system(cmd)
- except:
- print('RADIUS configuration failed')
+
+ except Exception as e:
+ raise ConfigError('RADIUS configuration failed: {}'.format(e))
+
else:
try:
# Disable RADIUS in PAM
@@ -147,8 +149,9 @@ def apply(radius):
/etc/nsswitch.conf"
os.system(cmd)
- except:
- print('Removing RADIUS configuration failed')
+
+ except Exception as e:
+ raise ConfigError('Removing RADIUS configuration failed'.format(e))
return None