Skip to content

Commit

Permalink
Handle when the url key is not present in board.json (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattytrentini authored Feb 13, 2025
1 parent d13969c commit a14a74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpbuild/board_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def factory(port: Port, filename_json: Path) -> Board:
board = Board(
name=filename_json.parent.name,
variants=[],
url=board_json["url"],
url=board_json.get("url", "http://micropython.org"),
mcu=board_json["mcu"],
product=board_json["product"],
vendor=board_json["vendor"],
Expand Down

0 comments on commit a14a74e

Please sign in to comment.