Skip to content

Commit

Permalink
Merge pull request #5423 from stsewd/fix-exception-configpy-not-found
Browse files Browse the repository at this point in the history
Fix reraise of exception
  • Loading branch information
ericholscher authored Mar 14, 2019
2 parents 1b9ed03 + 32c2386 commit 61db3c1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions readthedocs/doc_builder/backends/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ def append_conf(self, **__):
self.config_file or self.project.conf_file(self.version.slug)
)
outfile = codecs.open(self.config_file, encoding='utf-8', mode='a')
except (ProjectConfigurationError, IOError):
trace = sys.exc_info()[2]
except IOError:
raise ProjectConfigurationError(
ProjectConfigurationError.NOT_FOUND,
).with_traceback(trace)
ProjectConfigurationError.NOT_FOUND
)

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

0 comments on commit 61db3c1

Please sign in to comment.