diff options
author | Albert Zeyer <albert.zeyer@rwth-aachen.de> | 2011-05-13 16:00:36 +0200 |
---|---|---|
committer | Albert Zeyer <albert.zeyer@rwth-aachen.de> | 2011-05-13 16:00:36 +0200 |
commit | 2ea9ca847bfbb5a5476f89b66f90e68e6e6f5033 (patch) | |
tree | 036665a7d019552e7d9a72486440ab444d4bc4aa | |
parent | ae0ee6da8afd1e9ec9454740697afd05ba44fc7b (diff) |
small cleanup
-rwxr-xr-x | issues.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |