Fixed bug in readcfg(), extra )

This commit is contained in:
2004-01-27 22:03:31 +00:00
parent c330034e63
commit 912a30d7e5

View File

@@ -126,8 +126,8 @@ def readcfg(msg, show=""):
if not msg.has_key('cfgfile'):
if os.path.exists(os.path.expanduser("~/.dnsupdaterc")):
cfgfile = open(os.path.expanduser("~/.dnsupdaterc"), 'r')
elif os.path.exists("/etc/dnsupdaterc")):
cfgfile = open("/etc/dnsupdaterc"), 'r')
elif os.path.exists("/etc/dnsupdaterc"):
cfgfile = open("/etc/dnsupdaterc", 'r')
else:
return msg
else: