diff --git a/salt/client/ssh/wrapper/__init__.py b/salt/client/ssh/wrapper/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/wrapper/__init__.py
+++ b/salt/client/ssh/wrapper/__init__.py
@@ -30,7 +30,7 @@ class FunctionWrapper(dict):
         super(FunctionWrapper, self).__init__()
         self.wfuncs = wfuncs if isinstance(wfuncs, dict) else {}
         self.opts = opts
-        self.mods = mods
+        self.mods = mods if isinstance(mods, dict) else {}
         self.kwargs = {'id_': id_,
                        'host': host}
         self.kwargs.update(kwargs)
Add some safetly to mods