diff --git a/scrapling/parser.py b/scrapling/parser.py index b83d867..f9e177e 100644 --- a/scrapling/parser.py +++ b/scrapling/parser.py @@ -71,7 +71,7 @@ class Adaptor(SelectorsGeneration): if root is None and not body and text is None: raise ValueError("Adaptor class needs text, body, or root arguments to work") - self.__text = None + self.__text = '' self.__raw_body = '' if root is None: if text is None: