Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2008-07-02 19:06:11 (GMT)
committer Simon Schampijer <simon@schampijer.de>2008-07-02 19:06:11 (GMT)
commit02d8c8e9fe2d2897d1157c67c3b21af2f0303015 (patch)
treeff9cc0e74310e90623b4ee91f0103773ceb334f7 /scripts
parent97f17f2f76788d3eb954c036e5f84fd0e0414bfa (diff)
Report: return on non existant tag number
Diffstat (limited to 'scripts')
-rw-r--r--scripts/report.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/report.py b/scripts/report.py
index b46fc0a..ae15994 100644
--- a/scripts/report.py
+++ b/scripts/report.py
@@ -68,7 +68,12 @@ class ReleaseReport(object):
tags = [ tag for tag in tags if tag.startswith('v') ]
release_tag = 'v' + self._version
- i = tags.index(release_tag)
+ try:
+ i = tags.index(release_tag)
+ except ValueError:
+ print 'The tag you provided does not exist.'
+ return
+
if i > 0:
previous = tags[i - 1]
interval = previous + '..' + release_tag