diff --git a/autocatch.py b/autocatch.py index 2a977b2..be670d1 100644 --- a/autocatch.py +++ b/autocatch.py @@ -70,9 +70,10 @@ def __init__(self, file_name): self.space = self.paths[1] self.note = self.paths[2] self.file = self.paths[3] - if self.file in ("note.txt", "note.html"): + + if self.file !="note.enex": raise Exception(self.file + " files are not considered NoteFiles: " + file_name) - if self.file == "note.enex" and self.space == "All Notes": + if self.space == "All Notes": raise Exception("Not interested in All Notes note.enex files: " + file_name) class NoteImporter: