sqlformat: Fix except blocks to be Python 3 and 2.5 compatible.
sqlformat: Fix except blocks to be Python 3 and 2.5 compatible.

MariaPet/sqlparse,AndiDog/sqlparse,zhongdai/sqlparse,Yelp/sqlparse,benekastah/sqlparse,tailhook/sqlparse,payne/sqlparse,vmuriart/sqlparse,tailhook/sqlparse,actsasgeek/sqlparse,tailhook/sqlparse,actsasgeek/sqlparse,MariaPet/sqlparse,andialbrecht/sqlparse,adamgreenhall/sqlparse,zhongdai/sqlparse,zhongdai/sqlparse,Yelp/sqlparse,AndiDog/sqlparse,AndiDog/sqlparse,payne/sqlparse,Yelp/sqlparse,payne/sqlparse,adamgreenhall/sqlparse,adamgreenhall/sqlparse,actsasgeek/sqlparse