Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
neoppod
Commits
19b24acd
Commit
19b24acd
authored
Jul 13, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail if 'dynamic_master_list' is missing from configuration file
parent
3fdf29c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
neo/lib/config.py
neo/lib/config.py
+5
-2
No files found.
neo/lib/config.py
View file @
19b24acd
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ConfigParser
import
SafeConfigParser
from
ConfigParser
import
SafeConfigParser
,
NoOptionError
from
.
import
util
from
.
import
util
from
.util
import
parseNodeAddress
from
.util
import
parseNodeAddress
...
@@ -39,7 +39,10 @@ class ConfigurationManager(object):
...
@@ -39,7 +39,10 @@ class ConfigurationManager(object):
if
self
.
parser
is
None
:
if
self
.
parser
is
None
:
value
=
self
.
defaults
.
get
(
key
)
value
=
self
.
defaults
.
get
(
key
)
else
:
else
:
value
=
self
.
parser
.
get
(
self
.
section
,
key
)
try
:
value
=
self
.
parser
.
get
(
self
.
section
,
key
)
except
NoOptionError
:
pass
if
value
is
None
and
not
optional
:
if
value
is
None
and
not
optional
:
raise
RuntimeError
(
"Option '%s' is undefined'"
%
(
key
,
))
raise
RuntimeError
(
"Option '%s' is undefined'"
%
(
key
,
))
return
value
return
value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment