Change exception type
Remove duplicate 'pragma: no cover'
Layers view support None RestrictionArea.area.