Gate msgpack in salt/modules/data.py

This commit is contained in:
Colton Myers 2015-04-17 14:32:02 -06:00
parent d7e8741f02
commit 02303b22ce

View file

@ -47,7 +47,7 @@ def load():
datastore_path = os.path.join(__opts__['cachedir'], 'datastore')
fn_ = salt.utils.fopen(datastore_path, 'rb')
return serial.load(fn_)
except (IOError, OSError):
except (IOError, OSError, NameError):
return {}
@ -75,7 +75,7 @@ def dump(new_data):
return True
except (IOError, OSError):
except (IOError, OSError, NameError):
return False