Skip to content

Commit 261fc99

Browse files
fix(python): revert py exceptions template change
This reverts commit 13cbeef.
1 parent 51633d2 commit 261fc99

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

languages/python/templates/exceptions.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ApiTypeError(OpenApiException, TypeError):
3636
full_msg = msg
3737
if path_to_item:
3838
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
39-
super(ApiTypeError, self).__init__(full_msg, path_to_item, valid_classes, key_type)
39+
super(ApiTypeError, self).__init__(full_msg)
4040

4141

4242
class ApiValueError(OpenApiException, ValueError):
@@ -54,7 +54,7 @@ class ApiValueError(OpenApiException, ValueError):
5454
full_msg = msg
5555
if path_to_item:
5656
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
57-
super(ApiValueError, self).__init__(full_msg, path_to_item)
57+
super(ApiValueError, self).__init__(full_msg)
5858

5959

6060
class ApiAttributeError(OpenApiException, AttributeError):
@@ -73,7 +73,7 @@ class ApiAttributeError(OpenApiException, AttributeError):
7373
full_msg = msg
7474
if path_to_item:
7575
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
76-
super(ApiAttributeError, self).__init__(full_msg, path_to_item)
76+
super(ApiAttributeError, self).__init__(full_msg)
7777

7878

7979
class ApiKeyError(OpenApiException, KeyError):
@@ -90,7 +90,7 @@ class ApiKeyError(OpenApiException, KeyError):
9090
full_msg = msg
9191
if path_to_item:
9292
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
93-
super(ApiKeyError, self).__init__(full_msg, path_to_item)
93+
super(ApiKeyError, self).__init__(full_msg)
9494

9595

9696
class ApiException(OpenApiException):

0 commit comments

Comments
 (0)