From 1f145c6cbaea8f13c72881f41327241761e9d2e3 Mon Sep 17 00:00:00 2001 From: CkuT Date: Sat, 6 May 2017 14:59:09 +0200 Subject: [PATCH] Fix the source file checking --- src/documents/management/commands/document_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/management/commands/document_importer.py b/src/documents/management/commands/document_importer.py index 63c961815..afa0164ab 100644 --- a/src/documents/management/commands/document_importer.py +++ b/src/documents/management/commands/document_importer.py @@ -77,7 +77,7 @@ class Command(Renderable, BaseCommand): ) doc_file = record["__exported_file_name__"] - if not os.path.exists(os.path.join(self.source, doc_file)): + if not os.path.exists(doc_file): raise CommandError( 'The manifest file refers to "{}" which does not ' 'appear to be in the source directory.'.format(doc_file)