9 Feb
2018
9 Feb
'18
3:18 p.m.
if mem.freq != int(MURS_FREQS[mem.number - 1] * 1000000):
msg = 'Memory location cannot change frequency'
raise errors.InvalidDataError(msg)
return MURSV1.set_memory(self, mem)
I didn't catch this when I looked at this initially, but you don't need anything after the raise here. Once you raise, you're exploding and you cascade back to your caller, so the return will never be run.
I'm making some tweaks for the tests per our discussion, so I'll clean this up at the same time.
Thanks!
--Dan