From 2ea9ca847bfbb5a5476f89b66f90e68e6e6f5033 Mon Sep 17 00:00:00 2001 From: Albert Zeyer Date: Fri, 13 May 2011 16:00:36 +0200 Subject: small cleanup --- issues.py | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3