File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ def register_device(self, expiry: int) -> str:
203203 :raises DeviceRegistrationError: if the device cannot be registered successfully
204204 :raises RuntimeError: if the internet connection is not responding or is unable to connect
205205 """
206- # pylint: disable=c0103
206+ # pylint: disable=C0103
207207 sr = self ._id_scope + "%2Fregistrations%2F" + self ._device_id
208208 sig_no_encode = DeviceRegistration .compute_derived_symmetric_key (self ._key , sr + "\n " + str (expiry ))
209209 sig_encoded = parse .quote (sig_no_encode , "~()*!.'" )
@@ -237,8 +237,8 @@ def register_device(self, expiry: int) -> str:
237237 data = None
238238 try :
239239 data = response .json ()
240- except ValueError as e :
241- err = "ERROR: non JSON is received from " + constants .DPS_END_POINT + " => " + str (response ) + " .. message : " + str (e )
240+ except ValueError as error :
241+ err = "ERROR: non JSON is received from " + constants .DPS_END_POINT + " => " + str (response ) + " .. message : " + str (error )
242242 self ._logger .error (err )
243243 raise DeviceRegistrationError (err )
244244
You can’t perform that action at this time.
0 commit comments