prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  PermissionError redeclared in exceptions.py shadows built-in PermissionError class
  ```
  class PermissionError(BaseException):
  	pass
  ```
  
  Can we remove this and just use the built-in? Or we could rename ours to something different.
  
  </issue>
  <code>
  [start of archinstall/lib/exceptions.py]
  1 class RequirementError(BaseException):
  2 	pass
  3 
  4 
  5 class DiskError(BaseException):
  6 	pass
  7 
  8 
  9 class UnknownFilesystemFormat(BaseException):
  10 	pass
  11 
  12 
  13 class ProfileError(BaseException):
  14 	pass
  15 
  16 
  17 class SysCallError(BaseException):
  18 	def __init__(self, message, exit_code):
  19 		super(SysCallError, self).__init__(message)
  20 		self.message = message
  21 		self.exit_code = exit_code
  22 
  23 
  24 class ProfileNotFound(BaseException):
  25 	pass
  26 
  27 
  28 class HardwareIncompatibilityError(BaseException):
  29 	pass
  30 
  31 
  32 class PermissionError(BaseException):
  33 	pass
  34 
  35 
  36 class UserError(BaseException):
  37 	pass
  38 
  39 
  40 class ServiceException(BaseException):
  41 	pass
  42
  [end of archinstall/lib/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/archinstall/lib/exceptions.py b/archinstall/lib/exceptions.py
  --- a/archinstall/lib/exceptions.py
  +++ b/archinstall/lib/exceptions.py
  @@ -29,10 +29,6 @@
   	pass
   
   
  -class PermissionError(BaseException):
  -	pass
  -
  -
   class UserError(BaseException):
   	pass
  
verification_info: {"golden_diff": "diff --git a/archinstall/lib/exceptions.py b/archinstall/lib/exceptions.py\n--- a/archinstall/lib/exceptions.py\n+++ b/archinstall/lib/exceptions.py\n@@ -29,10 +29,6 @@\n \tpass\n \n \n-class PermissionError(BaseException):\n-\tpass\n-\n-\n class UserError(BaseException):\n \tpass\n", "issue": "PermissionError redeclared in exceptions.py shadows built-in PermissionError class\n```\r\nclass PermissionError(BaseException):\r\n\tpass\r\n```\r\n\r\nCan we remove this and just use the built-in? Or we could rename ours to something different.\n", "before_files": [{"content": "class RequirementError(BaseException):\n\tpass\n\n\nclass DiskError(BaseException):\n\tpass\n\n\nclass UnknownFilesystemFormat(BaseException):\n\tpass\n\n\nclass ProfileError(BaseException):\n\tpass\n\n\nclass SysCallError(BaseException):\n\tdef __init__(self, message, exit_code):\n\t\tsuper(SysCallError, self).__init__(message)\n\t\tself.message = message\n\t\tself.exit_code = exit_code\n\n\nclass ProfileNotFound(BaseException):\n\tpass\n\n\nclass HardwareIncompatibilityError(BaseException):\n\tpass\n\n\nclass PermissionError(BaseException):\n\tpass\n\n\nclass UserError(BaseException):\n\tpass\n\n\nclass ServiceException(BaseException):\n\tpass\n", "path": "archinstall/lib/exceptions.py"}]}