flow.py: fix try-except

refs https://github.com/ntts-clo/ryu/pull/38#commitcomment-3073889