mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
catch specific error
This commit is contained in:
parent
5830ee2588
commit
3bedc16784
@ -25,7 +25,7 @@ import copy
|
||||
import logging
|
||||
try:
|
||||
import msgpack
|
||||
except:
|
||||
except ImportError:
|
||||
import msgpack_pure as msgpack
|
||||
import os
|
||||
import locale
|
||||
|
@ -17,7 +17,7 @@ import os
|
||||
import yaml
|
||||
try:
|
||||
import msgpack
|
||||
except:
|
||||
except ImportError:
|
||||
import msgpack_pure as msgpack
|
||||
|
||||
# Import salt libs
|
||||
|
Loading…
Reference in New Issue
Block a user