Skip to content

Commit eb0f5c2

Browse files
gguf-py : display the invalid gguf type (#13687)
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent cf4cb59 commit eb0f5c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gguf-py/gguf/gguf_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def _get_field_parts(
251251
offs += curr_size
252252
return offs - orig_offs, aparts, data_idxs, types
253253
# We can't deal with this one.
254-
raise ValueError('Unknown/unhandled field type {gtype}')
254+
raise ValueError(f'Unknown/unhandled field type {gtype}')
255255

256256
def _get_tensor_info_field(self, orig_offs: int) -> ReaderField:
257257
offs = orig_offs

0 commit comments

Comments
 (0)