Skip to content

Commit e908f3a

Browse files
authored
attempt to fix pylint secrets failure
1 parent e3d2895 commit e908f3a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/esp32spi_udp_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33

44
import struct
55
import time
6-
from secrets import secrets
76
import board
87
from digitalio import DigitalInOut
98
from adafruit_esp32spi import adafruit_esp32spi
109
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
1110

11+
# Get wifi details and more from a secrets.py file
12+
try:
13+
from secrets import secrets
14+
except ImportError:
15+
print("WiFi secrets are kept in secrets.py, please add them there!")
16+
raise
1217

1318
TIMEOUT = 5
1419
# edit host and port to match server

0 commit comments

Comments
 (0)