projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
074d6e1
)
In getdef(), don't die when the section doesn't exist.
author
Guido van Rossum
<guido@python.org>
Mon, 6 Mar 2000 14:43:20 +0000
(14:43 +0000)
committer
Guido van Rossum
<guido@python.org>
Mon, 6 Mar 2000 14:43:20 +0000
(14:43 +0000)
Tools/idle/IdleConf.py
patch
|
blob
|
history
diff --git
a/Tools/idle/IdleConf.py
b/Tools/idle/IdleConf.py
index df5d9f83116dbb890f8c94876a88a51b12b1f408..807f183a3bd9ce11bc1c148689a623f254b3ba0d 100644
(file)
--- a/
Tools/idle/IdleConf.py
+++ b/
Tools/idle/IdleConf.py
@@
-2,7
+2,7
@@
import os
import sys
-from ConfigParser import ConfigParser, NoOptionError
+from ConfigParser import ConfigParser, NoOptionError
, NoSectionError
class IdleConfParser(ConfigParser):
@@
-26,7
+26,7
@@
class IdleConfParser(ConfigParser):
"""Get an option value for given section or return default"""
try:
return self.get(sec, options, raw, vars)
- except
NoOptionError
:
+ except
(NoSectionError, NoOptionError)
:
return default
def getsection(self, section):