mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
7bde48282e
commit
3eec8dbc63
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue