From 114ef2a63745957a198ec035fc77c6ba22a51a02 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Mon, 27 Feb 2017 22:13:59 -0800 Subject: [PATCH] autoapp: add OSError for py2.7 --- pywb/webagg/autoapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywb/webagg/autoapp.py b/pywb/webagg/autoapp.py index d790e82e..8da9e604 100644 --- a/pywb/webagg/autoapp.py +++ b/pywb/webagg/autoapp.py @@ -110,7 +110,7 @@ class AutoConfigApp(ResAggApp): try: return os.listdir(self.root_dir) - except IOError: + except (IOError, OSError): return [] def load_colls(self):