What kind of magnets are we talking about? Depending on how powerful they are I wouldn't spend too much time fretting over it.
Second, how close do you actually need the camera to be? If you don't have to be rubbing it up against the magnets then it's probably going to be fine.
If you really...