diff --git a/kibot/out_diff.py b/kibot/out_diff.py index cd74dea5..448451ae 100644 --- a/kibot/out_diff.py +++ b/kibot/out_diff.py @@ -192,6 +192,8 @@ class DiffOptions(BaseOptions): num = str(num) # Return its hash res = self.run_git(['log', '--pretty=format:%H', '--skip='+num, '-n', '1', '--', self.file]) + if not res: + raise KiPlotConfigurationError("The `{}` doesn't resolve to a valid hash".format(ori)) logger.debug('- '+res) return res