Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian ISP (http://www.linux-archive.org/debian-isp/)
-   -   Do not catch exceptions from system-config-date (#737882) (http://www.linux-archive.org/debian-isp/577911-do-not-catch-exceptions-system-config-date-737882-a.html)

Martin Gracik 09-20-2011 10:58 AM

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


All times are GMT. The time now is 08:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.