use modern 'except FooErr as bar:' syntax