Change this way:
```python
m = re.search(self.CHASH_PATTERN, self.html)
if not m:
    self.parseError("Unable to detect chash")
chash = m.group(1)
```
This way if the regex will be outdated it will result in a clean error message instead of an exception.