Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit dda4605

Browse files
author
Ludwig Schubert
committed
Fix typo
1 parent b5fa2b4 commit dda4605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lucid/modelzoo/vision_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def get_layer(self, name):
157157
if name.lower() in layer.name.lower():
158158
log.warning("Found layer by fuzzy matching, please use '%s' in the future!", layer.name)
159159
return layer
160-
key_error_message = "Could not find layer with name '%s'! Existing layer names are: %s"
161-
layer_names = str([l.name for l in self.layers]))
160+
key_error_message = "Could not find layer with name '{}'! Existing layer names are: {}"
161+
layer_names = str([l.name for l in self.layers])
162162
raise KeyError(key_error_message.format(name, layer_names))
163163

164164

0 commit comments

Comments
 (0)