diff --git a/s2s_pipeline.py b/s2s_pipeline.py
index 7aeff7f8b732d204bc835c65f19ad3f687b553cc..b367bb1ca929fae4339f00dca971c4a56ef19835 100644
--- a/s2s_pipeline.py
+++ b/s2s_pipeline.py
@@ -40,7 +40,7 @@ from utils import (
 # Ensure that the necessary NLTK resources are available
 try:
     nltk.data.find('tokenizers/punkt_tab')
-except LookupError:
+except (LookupError, OSError):
     nltk.download('punkt_tab')
 
 # caching allows ~50% compilation time reduction