diff --git a/app/v2/notifications/post_notifications.py b/app/v2/notifications/post_notifications.py index f2c82d2a2..c84c84767 100644 --- a/app/v2/notifications/post_notifications.py +++ b/app/v2/notifications/post_notifications.py @@ -430,10 +430,9 @@ def process_precompiled_letter_notifications(*, letter_data, api_key, service, t 'postage': notification.postage } - current_app.logger.info('Calling task scan-file for {}'.format(filename)) - # call task to add the filename to anti virus queue if current_app.config['ANTIVIRUS_ENABLED']: + current_app.logger.info('Calling task scan-file for {}'.format(filename)) notify_celery.send_task( name=TaskNames.SCAN_FILE, kwargs={'filename': filename},