mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
make new VSC port pio script more failsafe (#23439)
* no crash when VSC database is not found * don't stop when unknown OS is detected
This commit is contained in:
parent
2b460aa112
commit
54a9a117fc
@ -21,8 +21,10 @@ if os.environ.get("PLATFORMIO_CALLER") == "vscode":
|
||||
try:
|
||||
db_path = os.path.expanduser(os.path.expandvars(os_paths[os_name]))
|
||||
except KeyError:
|
||||
raise RuntimeError("Unknown OS: " + os_name)
|
||||
print("Unknown OS: " + os_name)
|
||||
|
||||
# Only when the database is found we can go on
|
||||
if os.path.exists(db_path):
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user