diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -166,14 +166,14 @@ class YAML(object): return self._reader except AttributeError: self._reader = self.Reader(None, loader=self) - return self._reader + return self._reader @property def scanner(self): # type: () -> Any try: return self._scanner - except: + except AttributeError: self._scanner = self.Scanner(loader=self) return self._scanner |