diff --git a/mayan/apps/converter/classes.py b/mayan/apps/converter/classes.py index 30c94d663b..87635260c1 100644 --- a/mayan/apps/converter/classes.py +++ b/mayan/apps/converter/classes.py @@ -146,7 +146,7 @@ class ConverterBase(object): logger.error('Exception launching Libre Office; %s', exception) raise finally: - fs_cleanup(libreoffice_home_directory) + fs_cleanup(filename=libreoffice_home_directory) # LibreOffice return a PDF file with the same name as the input # provided but with the .pdf extension. @@ -180,7 +180,7 @@ class ConverterBase(object): shutil.copyfileobj( fsrc=converted_file_object, fdst=temporary_converted_file_object ) - fs_cleanup(converted_file_path) + fs_cleanup(filename=converted_file_path) temporary_converted_file_object.seek(0) return temporary_converted_file_object diff --git a/mayan/apps/sources/tests/test_views.py b/mayan/apps/sources/tests/test_views.py index 591fecbd69..cc6579fc9d 100644 --- a/mayan/apps/sources/tests/test_views.py +++ b/mayan/apps/sources/tests/test_views.py @@ -238,7 +238,7 @@ class StagingFolderViewTestCase(GenericViewTestCase): self.filename = os.path.basename(TEST_SMALL_DOCUMENT_PATH) def tearDown(self): - fs_cleanup(self.temporary_directory) + fs_cleanup(filename=self.temporary_directory) super(StagingFolderViewTestCase, self).tearDown() def _request_staging_file_delete_view(self, staging_folder, staging_file):