Do not catch exceptions from system-config-date (#737882)
---
modules/date.py | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/modules/date.py b/modules/date.py
index 2ce83d9..05601f2 100644
--- a/modules/date.py
+++ b/modules/date.py
@@ -46,13 +46,10 @@ class moduleClass(Module):
if testing:
return RESULT_SUCCESS
- try:
- rc = self.scd.firstboot_apply()
- if rc == 0 and self.scd.closeParent:
- return RESULT_SUCCESS
- else:
- return RESULT_FAILURE
- except:
+ rc = self.scd.firstboot_apply()
+ if rc == 0 and self.scd.closeParent:
+ return RESULT_SUCCESS
+ else:
return RESULT_FAILURE
def createScreen(self):
--
1.7.3.2
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|