Skip to content

Commit 61db3c1

Browse files
authored
Merge pull request readthedocs#5423 from stsewd/fix-exception-configpy-not-found
Fix reraise of exception
2 parents 1b9ed03 + 32c2386 commit 61db3c1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

readthedocs/doc_builder/backends/sphinx.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,10 @@ def append_conf(self, **__):
176176
self.config_file or self.project.conf_file(self.version.slug)
177177
)
178178
outfile = codecs.open(self.config_file, encoding='utf-8', mode='a')
179-
except (ProjectConfigurationError, IOError):
180-
trace = sys.exc_info()[2]
179+
except IOError:
181180
raise ProjectConfigurationError(
182-
ProjectConfigurationError.NOT_FOUND,
183-
).with_traceback(trace)
181+
ProjectConfigurationError.NOT_FOUND
182+
)
184183

185184
# Append config to project conf file
186185
tmpl = template_loader.get_template('doc_builder/conf.py.tmpl')

0 commit comments

Comments
 (0)