prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Improve unexpected error message
  Many users are reporting / filling an issue in our issue tracker when this message is shown to them, which is logic because it's what the message says.
  
  > There was a problem with Read the Docs while building your documentation. Please report this to us with your build id (1234)
  
  Although, I think we should improve this message saying something like "if this problem persists, please report..." or something similar to that. Otherwise, sometimes it's a temporal failure and we get tons of reports.
  
  </issue>
  <code>
  [start of readthedocs/doc_builder/exceptions.py]
  1 # -*- coding: utf-8 -*-
  2 """Exceptions raised when building documentation."""
  3 
  4 from __future__ import division, print_function, unicode_literals
  5 
  6 from django.utils.translation import ugettext_noop
  7 
  8 
  9 class BuildEnvironmentException(Exception):
  10 
  11     message = None
  12     status_code = None
  13 
  14     def __init__(self, message=None, **kwargs):
  15         self.status_code = kwargs.pop('status_code', None) or self.status_code or 1
  16         message = message or self.get_default_message()
  17         super(BuildEnvironmentException, self).__init__(message, **kwargs)
  18 
  19     def get_default_message(self):
  20         return self.message
  21 
  22 
  23 class BuildEnvironmentError(BuildEnvironmentException):
  24 
  25     GENERIC_WITH_BUILD_ID = ugettext_noop(
  26         'There was a problem with Read the Docs while building your documentation. '
  27         'Please report this to us with your build id ({build_id}).',
  28     )
  29 
  30 
  31 class BuildEnvironmentCreationFailed(BuildEnvironmentError):
  32 
  33     message = ugettext_noop('Build environment creation failed')
  34 
  35 
  36 class VersionLockedError(BuildEnvironmentError):
  37 
  38     message = ugettext_noop('Version locked, retrying in 5 minutes.')
  39     status_code = 423
  40 
  41 
  42 class ProjectBuildsSkippedError(BuildEnvironmentError):
  43 
  44     message = ugettext_noop('Builds for this project are temporarily disabled')
  45 
  46 
  47 class YAMLParseError(BuildEnvironmentError):
  48 
  49     GENERIC_WITH_PARSE_EXCEPTION = ugettext_noop(
  50         'Problem parsing YAML configuration. {exception}',
  51     )
  52 
  53 
  54 class BuildTimeoutError(BuildEnvironmentError):
  55 
  56     message = ugettext_noop('Build exited due to time out')
  57 
  58 
  59 class BuildEnvironmentWarning(BuildEnvironmentException):
  60     pass
  61
  [end of readthedocs/doc_builder/exceptions.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/readthedocs/doc_builder/exceptions.py b/readthedocs/doc_builder/exceptions.py
  --- a/readthedocs/doc_builder/exceptions.py
  +++ b/readthedocs/doc_builder/exceptions.py
  @@ -24,7 +24,9 @@
   
       GENERIC_WITH_BUILD_ID = ugettext_noop(
           'There was a problem with Read the Docs while building your documentation. '
  -        'Please report this to us with your build id ({build_id}).',
  +        'Please try again later. '
  +        'However, if this problem persists, '
  +        'please report this to us with your build id ({build_id}).',
       )
  
verification_info: {"golden_diff": "diff --git a/readthedocs/doc_builder/exceptions.py b/readthedocs/doc_builder/exceptions.py\n--- a/readthedocs/doc_builder/exceptions.py\n+++ b/readthedocs/doc_builder/exceptions.py\n@@ -24,7 +24,9 @@\n \n     GENERIC_WITH_BUILD_ID = ugettext_noop(\n         'There was a problem with Read the Docs while building your documentation. '\n-        'Please report this to us with your build id ({build_id}).',\n+        'Please try again later. '\n+        'However, if this problem persists, '\n+        'please report this to us with your build id ({build_id}).',\n     )\n", "issue": "Improve unexpected error message\nMany users are reporting / filling an issue in our issue tracker when this message is shown to them, which is logic because it's what the message says.\r\n\r\n> There was a problem with Read the Docs while building your documentation. Please report this to us with your build id (1234)\r\n\r\nAlthough, I think we should improve this message saying something like \"if this problem persists, please report...\" or something similar to that. Otherwise, sometimes it's a temporal failure and we get tons of reports.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\"\"\"Exceptions raised when building documentation.\"\"\"\n\nfrom __future__ import division, print_function, unicode_literals\n\nfrom django.utils.translation import ugettext_noop\n\n\nclass BuildEnvironmentException(Exception):\n\n    message = None\n    status_code = None\n\n    def __init__(self, message=None, **kwargs):\n        self.status_code = kwargs.pop('status_code', None) or self.status_code or 1\n        message = message or self.get_default_message()\n        super(BuildEnvironmentException, self).__init__(message, **kwargs)\n\n    def get_default_message(self):\n        return self.message\n\n\nclass BuildEnvironmentError(BuildEnvironmentException):\n\n    GENERIC_WITH_BUILD_ID = ugettext_noop(\n        'There was a problem with Read the Docs while building your documentation. '\n        'Please report this to us with your build id ({build_id}).',\n    )\n\n\nclass BuildEnvironmentCreationFailed(BuildEnvironmentError):\n\n    message = ugettext_noop('Build environment creation failed')\n\n\nclass VersionLockedError(BuildEnvironmentError):\n\n    message = ugettext_noop('Version locked, retrying in 5 minutes.')\n    status_code = 423\n\n\nclass ProjectBuildsSkippedError(BuildEnvironmentError):\n\n    message = ugettext_noop('Builds for this project are temporarily disabled')\n\n\nclass YAMLParseError(BuildEnvironmentError):\n\n    GENERIC_WITH_PARSE_EXCEPTION = ugettext_noop(\n        'Problem parsing YAML configuration. {exception}',\n    )\n\n\nclass BuildTimeoutError(BuildEnvironmentError):\n\n    message = ugettext_noop('Build exited due to time out')\n\n\nclass BuildEnvironmentWarning(BuildEnvironmentException):\n    pass\n", "path": "readthedocs/doc_builder/exceptions.py"}]}