# HG changeset patch # User Pierre-Yves David # Date 1307614857 -7200 # Node ID 3d64867f10198e13ed82ba209d09d4d1ab63e1ec # Parent a70456bbb4bddc9e1a9b5a075836edd3c858c4c1 [bfss] Catch EnvironmentError instead of OSError when trying to read attributes bffstored This will also catch IOError (as file not found) that might be encountered expectable too. diff -r a70456bbb4bd -r 3d64867f1019 server/sources/storages.py --- 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