@@ -46,7 +46,7 @@ class ExtensionError(PluginError):
46
46
47
47
__TYPE = 'extension'
48
48
49
- def __init__ (self , message , * args , extension : str = '' , ** kwargs ):
49
+ def __init__ (self , message , * args , extension : str = '' , ** kwargs ):
50
50
super ().__init__ (message , * args , ** kwargs )
51
51
self .extension = extension
52
52
self .attr_stack .append ([self .__TYPE , {'extension' : self .extension }])
@@ -59,7 +59,7 @@ class RendererError(ExtensionError):
59
59
60
60
__TYPE = 'renderer'
61
61
62
- def __init__ (self , message , * args , renderer_class : str = '' , ** kwargs ):
62
+ def __init__ (self , message , * args , renderer_class : str = '' , ** kwargs ):
63
63
super ().__init__ (message , * args , ** kwargs )
64
64
self .renderer_class = renderer_class
65
65
self .attr_stack .append ([self .__TYPE , {'class' : self .renderer_class }])
@@ -72,7 +72,7 @@ class ExporterError(ExtensionError):
72
72
73
73
__TYPE = 'exporter'
74
74
75
- def __init__ (self , message , * args , exporter_class : str = '' , ** kwargs ):
75
+ def __init__ (self , message , * args , exporter_class : str = '' , ** kwargs ):
76
76
super ().__init__ (message , * args , ** kwargs )
77
77
self .exporter_class = exporter_class
78
78
self .attr_stack .append ([self .__TYPE , {'exporter_class' : self .exporter_class }])
@@ -85,8 +85,8 @@ class SubprocessError(ExporterError):
85
85
86
86
__TYPE = 'subprocess'
87
87
88
- def __init__ (self , message , * args , code : int = 500 , process : str = '' , cmd : str = '' ,
89
- returncode : int = None , path : str = '' , ** kwargs ):
88
+ def __init__ (self , message , * args , code : int = 500 , process : str = '' , cmd : str = '' ,
89
+ returncode : int = None , path : str = '' , ** kwargs ):
90
90
super ().__init__ (message , * args , code = code , ** kwargs )
91
91
self .process = process
92
92
self .cmd = cmd
@@ -107,7 +107,7 @@ class ProviderError(PluginError):
107
107
108
108
__TYPE = 'provider'
109
109
110
- def __init__ (self , message , * args , provider : str = '' , ** kwargs ):
110
+ def __init__ (self , message , * args , provider : str = '' , ** kwargs ):
111
111
super ().__init__ (message , * args , ** kwargs )
112
112
self .provider = provider
113
113
self .attr_stack .append ([self .__TYPE , {'provider' : self .provider }])
@@ -120,7 +120,7 @@ class DownloadError(ProviderError):
120
120
121
121
__TYPE = 'download'
122
122
123
- def __init__ (self , message , * args , download_url : str = '' , response : str = '' , ** kwargs ):
123
+ def __init__ (self , message , * args , download_url : str = '' , response : str = '' , ** kwargs ):
124
124
super ().__init__ (message , * args , ** kwargs )
125
125
self .download_url = download_url
126
126
self .response = response
@@ -137,7 +137,7 @@ class MetadataError(ProviderError):
137
137
138
138
__TYPE = 'metadata'
139
139
140
- def __init__ (self , message , * args , metadata_url : str = '' , response : str = '' , ** kwargs ):
140
+ def __init__ (self , message , * args , metadata_url : str = '' , response : str = '' , ** kwargs ):
141
141
super ().__init__ (message , * args , ** kwargs )
142
142
self .metadata_url = metadata_url
143
143
self .response = response
@@ -153,8 +153,8 @@ class TooBigToRenderError(ProviderError):
153
153
154
154
__TYPE = 'too_big_to_render'
155
155
156
- def __init__ (self , message , * args , requested_size : int = None , maximum_size : int = None ,
157
- code : int = 400 , ** kwargs ):
156
+ def __init__ (self , message , * args , requested_size : int = None , maximum_size : int = None ,
157
+ code : int = 400 , ** kwargs ):
158
158
super ().__init__ (message , * args , code = code , ** kwargs )
159
159
self .requested_size = requested_size
160
160
self .maximum_size = maximum_size
@@ -168,8 +168,8 @@ class DriverManagerError(PluginError):
168
168
169
169
__TYPE = 'drivermanager'
170
170
171
- def __init__ (self , message , * args , namespace : str = '' , name : str = '' , invoke_on_load : bool = None ,
172
- invoke_args : dict = None , ** kwargs ):
171
+ def __init__ (self , message , * args , namespace : str = '' , name : str = '' , invoke_on_load : bool = None ,
172
+ invoke_args : dict = None , ** kwargs ):
173
173
super ().__init__ (message , * args , ** kwargs )
174
174
175
175
self .namespace = namespace
@@ -189,7 +189,7 @@ class MakeProviderError(DriverManagerError):
189
189
"""Thrown when MFR can't find an applicable provider class. This indicates programmer error,
190
190
so ``code`` defaults to ``500``."""
191
191
192
- def __init__ (self , message , * args , code : int = 500 , ** kwargs ):
192
+ def __init__ (self , message , * args , code : int = 500 , ** kwargs ):
193
193
super ().__init__ (message , * args , code = code , ** kwargs )
194
194
195
195
@@ -201,7 +201,7 @@ class UnsupportedExtensionError(DriverManagerError):
201
201
202
202
__TYPE = 'unsupported_extension'
203
203
204
- def __init__ (self , * args , code : int = 400 , handler_type : str = '' , ** kwargs ):
204
+ def __init__ (self , * args , code : int = 400 , handler_type : str = '' , ** kwargs ):
205
205
super ().__init__ (* args , code = code , ** kwargs )
206
206
207
207
self .handler_type = handler_type
0 commit comments