##// END OF EJS Templates
config: ignore include errors for nonexistent files
Matt Mackall -
r14486:4e3eda05 default
parent child Browse files
Show More
@@ -7,7 +7,7 b''
7
7
8 from i18n import _
8 from i18n import _
9 import error, util
9 import error, util
10 import re, os
10 import re, os, errno
11
11
12 class sortdict(dict):
12 class sortdict(dict):
13 'a simple sorted dictionary'
13 'a simple sorted dictionary'
@@ -103,9 +103,10 b' class config(object):'
103 try:
103 try:
104 include(inc, remap=remap, sections=sections)
104 include(inc, remap=remap, sections=sections)
105 except IOError, inst:
105 except IOError, inst:
106 raise error.ParseError(_("cannot include %s (%s)")
106 if inst.errno != errno.ENOENT:
107 % (inc, inst.strerror),
107 raise error.ParseError(_("cannot include %s (%s)")
108 "%s:%s" % (src, line))
108 % (inc, inst.strerror),
109 "%s:%s" % (src, line))
109 continue
110 continue
110 if emptyre.match(l):
111 if emptyre.match(l):
111 continue
112 continue
General Comments 0
You need to be logged in to leave comments. Login now