tests: replace "naked except clause" to avoid check-code.py error
This is a part of preparation to apply checking with check-code.py on
code fragments embedded in *.t test scripts.
local test passedaddgroupcopy test passedclone test passedlowlevelcopy test passedslicing test passedissnapshot test passedfindsnapshot test passed