[1.7.x] Fixed #23123 -- Don't use a bare except in ModelAdmin documentation

Thanks to wkschwartz for the report and to Tim for the patch.

Backport of e5619330e2d3bf901155e98ef3fa7d224b6a260a from master.