Fix error message for missing parallel imports
The helper method that raises a descriptive error at call time instead
of load time was not able to accept keyword arguments, which resulted
in an even more confusing error message. Allow it to take keyword
arguments, which are ignored the same as the positional arguments.
@@ -17,7 +17,7 @@ except:
# If we can't import joblib and dill, define the functions we tried to import
# such that they will raise useful errors if called.
def raiseImportError(moduleStr):
- def defineImportError(*args):
+ def defineImportError(*args, **kwargs):
raise ImportError,moduleStr + ' could not be imported, and is required for this'+\
' function. See HARK documentation for more information on how to install the ' \
+ moduleStr + ' module.'
