|
From: Ralf S. <rs...@ru...> - 2026-10-05 14:22:46
|
On Mon, Oct 05, 2026 at 10:00:30AM -0400, John Rouillard wrote: > > You said you have checks to see if oldvalue and newvalue are different. > > Is each of your oldvalue checks guarded to make sure the property you are > comparing exists in oldvalues? > > For example: > > "some_unchanged_prop" in oldvalues and oldvalues['some_unchanged_prop'] > > is ok but a bare: > > oldvalues['some_unchanged_prop'] > > will fail if I strip unchanged properties. > > Currently the second case is fine and returns the same value as a > database lookup. Right, I'm not sure I'm doing it correctly everywhere. I *think* I'm using oldvalues.get in most cases but I probably should go over all uses of oldvalues... Thanks for pointing this out. Kind regards Ralf -- Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16 Open Source Consulting www: www.runtux.com Reichergasse 131, A-3411 Weidling email: of...@ru... |