Skip to content

Commit b364bd8

Browse files
authored
Fix unhandled error branch (#849)
1 parent 36edb6c commit b364bd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fpm/toml.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ subroutine get_list(table, key, list, error)
8484
type(toml_array), pointer :: children
8585
character(len=:), allocatable :: str
8686

87+
if (.not.table%has_key(key)) return
88+
8789
call get_value(table, key, children, requested=.false.)
8890
if (associated(children)) then
8991
nlist = len(children)

0 commit comments

Comments
 (0)