We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
except
1 parent 84da3da commit e9e774bCopy full SHA for e9e774b
1 file changed
shutdownirq.py
@@ -111,7 +111,7 @@ def announce():
111
else:
112
pulse_start = None
113
pulse_end = None
114
- except:
+ except Exception:
115
pass
116
117
import RPi.GPIO as GPIO
@@ -144,7 +144,7 @@ def announce():
144
sys.exit()
145
if GPIO.input(SHUTDOWN): # before looping we must make sure the shutdown signal went low
146
GPIO.wait_for_edge(SHUTDOWN, GPIO.FALLING)
147
148
149
finally:
150
GPIO.cleanup()
0 commit comments