typo in 0.4 prevents adding exclusion regex

Bug #809538 reported by clee on 2011-07-12
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Time Drive

Bug Description

In version 0.4, attempting to add a regular expression to the "exclude" list in the setting dialog returns the error message invalid regular expression in a pop up. Looking at the code, there is an unqualitfied try:/except: block which hides a typo:
if not self._Validate.check(self.Validate.REGEX, excludePattern):

but self.Validate.REGEX doesn't exist. It should be self._Validate.REGEX.

I will attach a patch which fixes the typo and prints out any other exceptions which occur in this try/except block

clee (chris-leemesser) wrote :
Gelefisk (gelefisk) wrote :

The patch worked for me, but seems to be reversed, so had to apply with patch -R timedrive/settingsdialog.py timedrive-validate_typo.diff

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers