Skip to content

Commit

Permalink
Merge pull request #2634 from rtfd/fix-conf-error
Browse files Browse the repository at this point in the history
Fix issue where we can't find conf.py and raise bad error.
  • Loading branch information
ericholscher committed Feb 8, 2017
2 parents ae67af4 + 53f2179 commit 7355927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readthedocs/doc_builder/backends/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def append_conf(self, **kwargs):

project = self.project
# Open file for appending.
outfile_path = project.conf_file(self.version.slug)
try:
outfile_path = project.conf_file(self.version.slug)
outfile = codecs.open(outfile_path, encoding='utf-8', mode='a')
except IOError:
except (ProjectImportError, IOError):
trace = sys.exc_info()[2]
raise ProjectImportError('Conf file not found'), None, trace
try:
Expand Down

0 comments on commit 7355927

Please sign in to comment.