let's do:
for module in [crashstats.crashstats.models, crashstats.supersearch.models]:
    try:
        model = getattr(module, model_name)
         break
    except AttributeError:
          pass
else:
   raise Http404(...)
```