server/sources/storages.py
branchstable
changeset 7477 3d64867f1019
parent 7449 5e45e32071aa
child 7481 23ae090fc6a4
child 7694 bd56a29acaa8
--- a/server/sources/storages.py	Thu Jun 09 10:36:28 2011 +0200
+++ b/server/sources/storages.py	Thu Jun 09 12:20:57 2011 +0200
@@ -122,7 +122,7 @@
         fpath = source.binary_to_str(value)
         try:
             return Binary(file(fpath, 'rb').read())
-        except OSError, ex:
+        except EnvironmentError, ex:
             source.critical("can't open %s: %s", value, ex)
             return None