diff --git a/monitor.py b/monitor.py index 38339b38..c5de435b 100644 --- a/monitor.py +++ b/monitor.py @@ -289,7 +289,8 @@ class EDLogs(FileSystemEventHandler): newlogfile = logfiles and join(self.currentdir, logfiles[-1]) or None except: - if __debug__: print_exc() + if __debug__: + print_exc() newlogfile = None @@ -757,7 +758,9 @@ class EDLogs(FileSystemEventHandler): # "python" and "Python", etc. # This returns a simple lowercased name e.g. 'hnshockmount', 'int_cargorack_size6_class1', 'python', etc def canonicalise(self, item): - if not item: return '' + if not item: + return '' + item = item.lower() match = self._RE_CANONICALISE.match(item) return match and match.group(1) or item