diff --git a/server/src/annotation.py b/server/src/annotation.py index 1a1b3f71..7e96f471 100644 --- a/server/src/annotation.py +++ b/server/src/annotation.py @@ -1284,7 +1284,6 @@ def __init__(self, document=None, text=None, read_only=False, lock_dir=None, sou if document.endswith('.txt'): textfile_path = document else: - textfile_path = remove_known_suffix(document, KNOWN_FILE_SUFF) # Do we have a known extension? _, file_ext = splitext(document) if not file_ext or file_ext not in KNOWN_FILE_SUFF: