diff --git a/lib/tfw/components/directory_monitor.py b/lib/tfw/components/directory_monitor.py index fd69cbb..1493133 100644 --- a/lib/tfw/components/directory_monitor.py +++ b/lib/tfw/components/directory_monitor.py @@ -52,8 +52,7 @@ class DirectoryMonitor: @ignore.setter def ignore(self, value): - if value >= 0: self.ignore = value - else: self.ignore = 0 + self.ignore = value if value >= 0 else 0 @property def pauser(self):