Commit a6aae23
committed
Make sure that the returned grid is not None
`microgrid.grid.get()` returns `Grid | None`, so before accessing any
attributes from `grid` we need to make sure it is not `None`.
Signed-off-by: Leandro Lucarella <[email protected]>1 parent 3792906 commit a6aae23
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments