*: remove unused variables

This commit is contained in:
Robin Ole Heinemann 2021-05-18 21:10:47 +02:00 committed by whitequark
parent 25caf4045b
commit f570e1bbeb
3 changed files with 3 additions and 8 deletions

View file

@ -49,7 +49,7 @@ class Layout:
try:
# Check provided shape by calling Shape.cast and checking for exception
Shape.cast(shape, src_loc_at=1 + src_loc_at)
except Exception as error:
except Exception:
raise TypeError("Field {!r} has invalid shape: should be castable to Shape "
"or a list of fields of a nested record"
.format(field))