File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 9
9
# "password" keys with your WiFi credentials. DO NOT share that file or commit it into Git or other
10
10
# source control.
11
11
# pylint: disable=no-name-in-module,wrong-import-order
12
- from secrets import secrets
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
13
17
14
18
# If you are using a board with pre-defined ESP32 Pins:
15
19
esp32_cs = DigitalInOut (board .ESP_CS )
Original file line number Diff line number Diff line change 10
10
# "password" keys with your WiFi credentials. DO NOT share that file or commit it into Git or other
11
11
# source control.
12
12
# pylint: disable=no-name-in-module,wrong-import-order
13
- from secrets import secrets
13
+ try :
14
+ from secrets import secrets
15
+ except ImportError :
16
+ print ("WiFi secrets are kept in secrets.py, please add them there!" )
17
+ raise
14
18
15
19
# If you are using a board with pre-defined ESP32 Pins:
16
20
esp32_cs = DigitalInOut (board .ESP_CS )
You can’t perform that action at this time.
0 commit comments