Skip to content

Commit bf3e31d

Browse files
committed
remove last unneeded else
1 parent 2347133 commit bf3e31d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

adafruit_rockblock.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,9 @@ def ring_alert(self, value=1):
262262
if resp[-1].strip().decode() == "OK":
263263
return True
264264
raise RuntimeError("Error setting Ring Alert.")
265-
else:
266-
raise ValueError(
267-
"Use 0 or False to disable Ring Alert or use 0 or True to enable Ring Alert."
268-
)
265+
raise ValueError(
266+
"Use 0 or False to disable Ring Alert or use 0 or True to enable Ring Alert."
267+
)
269268

270269
@property
271270
def ring_indication(self):

0 commit comments

Comments
 (0)