def save_report(self, file_path):
try:<EOL><INDENT>report = self.create_report()<EOL><DEDENT>except coverage.CoverageException as e:<EOL><INDENT>log.error('<STR_LIT>', exc_info=e)<EOL><DEDENT>else:<EOL><INDENT>with open(file_path, '<STR_LIT:w>') as report_file:<EOL><INDENT>report_file.write(report)<EOL><DEDENT><DEDENT>
Write coveralls report to file.