summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Zeyer <albert.zeyer@rwth-aachen.de>2011-05-13 16:00:36 +0200
committerAlbert Zeyer <albert.zeyer@rwth-aachen.de>2011-05-13 16:00:36 +0200
commit2ea9ca847bfbb5a5476f89b66f90e68e6e6f5033 (patch)
tree036665a7d019552e7d9a72486440ab444d4bc4aa
parentae0ee6da8afd1e9ec9454740697afd05ba44fc7b (diff)
small cleanup
-rwxr-xr-xissues.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/issues.py b/issues.py
index 4b275f5..40270b7 100755
--- a/issues.py
+++ b/issues.py
@@ -20,9 +20,7 @@ print 'Parsing XML export...'
soup = BeautifulStoneSoup(open(xml_file_name, 'r'), convertEntities=BeautifulStoneSoup.ALL_ENTITIES)
trackers = soup.document.find('trackers', recursive=False).findAll('tracker', recursive=False)
-if len(trackers) > 1:
- print 'Multiple trackers not yet supported, sorry'
- sys.exit(1)
+assert len(trackers) == 1, 'Multiple trackers not yet supported, sorry'
tracker = trackers[0]
from urllib import urlencode