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

Commit b5fa2b4

Browse files
author
Ludwig Schubert
committed
Fix Python2 incompatibility by removing an f-string.
1 parent e090d24 commit b5fa2b4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lucid/modelzoo/vision_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ 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-
raise KeyError(f"Could not find layer with name '{name}'! Existing layer names are: {[l.name for l in self.layers]}")
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]))
162+
raise KeyError(key_error_message.format(name, layer_names))
161163

162164

163165
class SerializedModel(Model):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
from setuptools import setup, find_packages
2020

21-
version = "0.3.4"
21+
version = "0.3.5"
2222

2323
test_deps = ["future", "twine", "pytest", "pytest-mock", "python-coveralls"]
2424

0 commit comments

Comments
 (0)