Browse Source

Remove unused exception

Guénaël Muller 7 years ago
parent
commit
2d3ffef001

+ 2 - 4
tracim/tracim/lib/email_body_parser.py View File

6
 
6
 
7
 # BodyParts and Body Parts Objects #
7
 # BodyParts and Body Parts Objects #
8
 
8
 
9
+
9
 class BodyMailPartType(object):
10
 class BodyMailPartType(object):
10
     Signature = 'sign'
11
     Signature = 'sign'
11
     Main = 'main'
12
     Main = 'main'
98
             s_mail += elem.text
99
             s_mail += elem.text
99
         return str(s_mail)
100
         return str(s_mail)
100
 
101
 
101
-
102
-class SignatureIndexError(Exception):
103
-    pass
104
-
105
 # Elements Checkers #
102
 # Elements Checkers #
106
 
103
 
104
+
107
 class ProprietaryHTMLAttrValues(object):
105
 class ProprietaryHTMLAttrValues(object):
108
     """
106
     """
109
     This are all Proprietary (mail client specific) html attr value we need to
107
     This are all Proprietary (mail client specific) html attr value we need to

+ 0 - 1
tracim/tracim/tests/library/test_email_body_parser.py View File

3
 from tracim.lib.email_body_parser import BodyMailParts
3
 from tracim.lib.email_body_parser import BodyMailParts
4
 from tracim.lib.email_body_parser import BodyMailPart
4
 from tracim.lib.email_body_parser import BodyMailPart
5
 from tracim.lib.email_body_parser import BodyMailPartType
5
 from tracim.lib.email_body_parser import BodyMailPartType
6
-from tracim.lib.email_body_parser import SignatureIndexError
7
 from tracim.lib.email_body_parser import ParsedHTMLMail
6
 from tracim.lib.email_body_parser import ParsedHTMLMail
8
 from tracim.tests import TestStandard
7
 from tracim.tests import TestStandard
9
 from bs4 import BeautifulSoup,Tag
8
 from bs4 import BeautifulSoup,Tag