From de4d6c0714ca04a5e9b90630397f89fca938e33e Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 2 Sep 2022 08:14:55 -0300 Subject: [PATCH] [Diff] Added error message when KIBOT_LAST doesn't point to a hash --- kibot/out_diff.py | 2 ++ 1 file changed, 2 insertions(+) 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