File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -145,15 +145,21 @@ def __init__(self, response):
145145 # Error message
146146 response_code = response .status_code
147147 response_reason = " " + response .reason if response .reason else ""
148- description = RESPONSE_CODES .get (response_code ,
149- "Unknown Response Code" )
148+ description = RESPONSE_CODES .get (
149+ response_code ,
150+ "Unknown Response Code" ,
151+ )
150152 detail = _response_to_string (response )
151153
152- super (ApiError , self ).__init__ ("Response Code [{}]{} - {}\n {}"
153- "" .format (response_code ,
154- response_reason ,
155- description ,
156- detail ))
154+ super (ApiError , self ).__init__ (
155+ "Response Code [{}]{} - {}\n {}"
156+ "" .format (
157+ response_code ,
158+ response_reason ,
159+ description ,
160+ detail
161+ )
162+ )
157163
158164
159165class MalformedResponse (webexteamssdkException ):
Original file line number Diff line number Diff line change @@ -51,4 +51,4 @@ def dict_data_factory(model, json_data):
5151 dictionary.
5252
5353 """
54- return json_dict (json_data )
54+ return json_dict (json_data )
Original file line number Diff line number Diff line change 2929SOFTWARE.
3030"""
3131
32-
3332from __future__ import (
3433 absolute_import ,
3534 division ,
@@ -147,7 +146,7 @@ def _freeze(self):
147146 def __eq__ (self , other ):
148147 """Determine if two objects are equal."""
149148 return isinstance (other , self .__class__ ) \
150- and self ._freeze () == other ._freeze ()
149+ and self ._freeze () == other ._freeze ()
151150
152151 def __hash__ (self ):
153152 """Hash the data object."""
You can’t perform that action at this time.
0 commit comments