Skip to content

Commit 42c914e

Browse files
Added raise-missing-from to pylint:disable since doing so would break this in python2
1 parent 156e820 commit 42c914e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_rplidar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def connect(self):
175175
except serial.SerialException as err:
176176
raise RPLidarException(
177177
"Failed to connect to the sensor " "due to: %s" % err
178-
)
178+
) from err
179179

180180
def disconnect(self):
181181
"""Disconnects from the serial port"""

0 commit comments

Comments
 (0)