Avoid passing pre-formatted strings to time_this (DM-54999)#1378
Conversation
timj
left a comment
There was a problem hiding this comment.
Perfect. That's how the API is meant to be used.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1378 +/- ##
=======================================
Coverage 89.61% 89.61%
=======================================
Files 373 373
Lines 50776 50780 +4
Branches 5913 5913
=======================================
+ Hits 45505 45509 +4
Misses 3880 3880
Partials 1391 1391 ☔ View full report in Codecov by Sentry. |
3c07031 to
acf6d5f
Compare
TallJimbo
left a comment
There was a problem hiding this comment.
I think you could have just removed the cast calls, but I guess with the asserts we get compatibility with new and old.
Without assert old mypy complains about |
|
I think that suggests that this was triggered by a |
That methods expects message string to be a format string for `logging.log`. When we pre-format that message it could end up with a percent sign in it with causes exceptions in `logging`.
acf6d5f to
3b599e0
Compare
That methods expects message string to be a format string for
logging.log. When we pre-format that message it could end up with a percent sign in it with causes exceptions inlogging.Checklist
doc/changesconfigs/old_dimensionsand update the list indoc/lsst.daf.butler/dimensions.rst