Dummy proxy: catch EOFError instead of IOError

This is due to the changes from #44551, when the dummy proxy module
is using salt.utils.files.mkstemp.
This commit is contained in:
Mircea Ulinic 2017-11-30 10:19:53 +00:00 committed by Mircea Ulinic
parent 7bde48282e
commit 3eec8dbc63
No known key found for this signature in database
GPG key ID: 4286FAD4BACBB073

View file

@ -48,7 +48,7 @@ def _load_state():
pck = open(FILENAME, 'r') # pylint: disable=W8470
DETAILS = pickle.load(pck)
pck.close()
except IOError:
except EOFError:
DETAILS = {}
DETAILS['initialized'] = False
_save_state(DETAILS)