Skip to content

Commit 6fe1c80

Browse files
committed
use raise ... from
1 parent f179ce0 commit 6fe1c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_bluefruitspi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def command(self, string):
247247
return rsp
248248
raise RuntimeError("Unknown response (id:{0})".format(hex(msgid)))
249249
except RuntimeError as error:
250-
raise RuntimeError("AT command failure: " + repr(error))
250+
raise RuntimeError("AT command failure: " + repr(error)) from error
251251

252252
def command_check_OK(self, command, delay=0.0): # pylint: disable=invalid-name
253253
"""Send a fully formed bytestring AT command, and check

0 commit comments

Comments
 (0)