|
From: <di...@us...> - 2010-11-19 17:00:03
|
Revision: 696
http://safekeep.svn.sourceforge.net/safekeep/?rev=696&view=rev
Author: dimi
Date: 2010-11-19 16:59:55 +0000 (Fri, 19 Nov 2010)
Log Message:
-----------
Better handle errors in case things go really bad
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2010-11-19 16:50:18 UTC (rev 695)
+++ safekeep/trunk/safekeep 2010-11-19 16:59:55 UTC (rev 696)
@@ -642,6 +642,9 @@
if not line: raise ConfigException('Unexpected end of file')
cfgStr += line
+ do_client_config_parse(cfgStr, dflt_id)
+
+def do_client_config_parse(cfgStr, dflt_id=None):
dom = xml.dom.minidom.parseString(cfgStr)
try:
return parse_config(dom.documentElement, dflt_id)
@@ -774,6 +777,7 @@
debug("Do client main loop")
should_cleanup = True
bdir = '/'
+ cfg = do_client_config_parse('<backup/>', 'def')
try:
while True:
try:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|