We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37411dd commit 9e75456Copy full SHA for 9e75456
nipype/interfaces/niftyreg/base.py
@@ -72,7 +72,11 @@ class NiftyRegCommand(CommandLine):
72
73
def __init__(self, required_version=None, **inputs):
74
super(NiftyRegCommand, self).__init__(**inputs)
75
- cur_version = self.get_version().decode("utf-8")
+ cur_version = self.get_version()
76
+ if not cur_version:
77
+ raise Exception('Niftyreg not found')
78
+ # Decoding to string:
79
+ cur_version = cur_version.decode("utf-8")
80
if StrictVersion(cur_version) < StrictVersion(self._min_version):
81
err = 'A later version of Niftyreg is required (%s < %s)'
82
raise ValueError(err % (cur_version, self._min_version))
0 commit comments