Run modernizer on the code.

This commit is contained in:
Umair Khan
2016-07-12 17:25:46 +05:00
parent 07f68815df
commit da998ddb60
24 changed files with 61 additions and 27 deletions

View File

@@ -1,3 +1,4 @@
from __future__ import absolute_import
import logging
import regex as re
@@ -111,7 +112,7 @@ def extract_signature(msg_body):
return (stripped_body.strip(),
signature.strip())
except Exception, e:
except Exception as e:
log.exception('ERROR extracting signature')
return (msg_body, None)