Fix adding project from TP
offlate/systems/tp.py
78 | 78 | def updateVersion(self): | |
79 | 79 | url = 'https://translationproject.org/domain/' + self.name + '.html' | |
80 | 80 | page = requests.get(url) | |
81 | - | if page.status_code != '200': | |
81 | + | if int(page.status_code) >= 400: | |
82 | 82 | raise ProjectNotFoundSystemException(self.name) | |
83 | 83 | tree = html.fromstring(page.content) | |
84 | 84 | pot = tree.xpath('//a[contains(@href,"POT-file")]/text()') |