sf.SFError (exceptions) or sf.SFWarning (warnings), so except sf.SFError catches any numeric or structural problem from the library. The numeric exceptions also inherit from the matching built-in, so existing except OverflowError and except ZeroDivisionError handlers keep working.