Skip to content

Commit

Permalink
Fix reraise of exception
Browse files Browse the repository at this point in the history
We were hiding the real error
from the user

Related #4745 (comment)
  • Loading branch information
stsewd committed Mar 8, 2019
1 parent bb4c639 commit 32c2386
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 32c2386

Please sign in to comment.