summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 85ad0cb..20d5f07 100644
--- a/main.py
+++ b/main.py
@@ -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