Skip to content

Commit

Permalink
Fix missing quotes in error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Nov 13, 2020
1 parent 68cd4a4 commit d2440ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/daf/butler/registry/queries/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ def categorizeElementId(universe: DimensionUniverse, name: str) -> Tuple[Dimensi
)
else:
if column not in element.RecordClass.fields.standard.names:
raise LookupError(f"Column '{column} not found in table for {element}.")
raise LookupError(f"Column '{column}' not found in table for {element}.")
return element, column
else:
try:
dimension = universe[table]
except KeyError as err:
raise LookupError(f"No dimension with name '{table}.") from err
raise LookupError(f"No dimension with name '{table}'.") from err
return dimension, None


Expand Down

0 comments on commit d2440ac

Please sign in to comment.