typo in 0.4 prevents adding exclusion regex

Bug #809538 reported by clee
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Time Drive
New
Undecided
Unassigned

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

Revision history for this message
clee (chris-leemesser) wrote :
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.