Skip to content

Commit

Permalink
Minimum refactor to share code
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Aug 8, 2018
1 parent 64dccc6 commit 3593dc9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions readthedocs/doc_builder/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,13 +726,7 @@ def __exit__(self, exc_type, exc_value, tb):
if not all([exc_type, exc_value, tb]):
exc_type, exc_value, tb = sys.exc_info()

ret = self.handle_exception(exc_type, exc_value, tb)
self.update_build(BUILD_STATE_FINISHED)
log.info(LOG_TEMPLATE
.format(project=self.project.slug,
version=self.version.slug,
msg='Build finished'))
return ret
return super(DockerBuildEnvironment, self).__exit__(exc_type, exc_value, tb)

def get_client(self):
"""Create Docker client connection."""
Expand Down

0 comments on commit 3593dc9

Please sign in to comment.