Skip to content

Commit

Permalink
Fixed a bug when the program would try to validate a disabled sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Fernandes Vieira committed Dec 10, 2018
1 parent ba4d248 commit cc5bde2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _about.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
'''

name = "1D-Sync"
version = "2.5-alpha7"
build_date = "2018/12/09"
version = "2.5-alpha8"
build_date = "2018/12/10"
codename = "Ghost River"
4 changes: 4 additions & 0 deletions _sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def load(self, log): # loads the sync from its path and validates its values
if not self.validate_enable(self.properties, log):
return False

if not ast.literal_eval(self.properties["enable"]):
# will skip validating the file if it is disabled
return True

if not self.validate_source_path(self.properties, log):
return False

Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* All time values are now in the same unit (seconds)
* Options tied to malfunctions in config.json are now inverted, making them easier to understand while also removing the need to use precedence of options
* Add option to use a faster but inaccurate comparison technique, it will compare filenames only (like the early versions)
* Fixed a bug when the program would try to validate a disabled sync, possibly logging the failure multiple times

2.4 - Fear of the Dark
This release focuses on making selection conditions more versatile by using a logical expression analyzer (a very simple one, don't expect too much) available as a separate project in https://github.com/1deterministic/Simple-Logical-Expression-Analyzer
Expand Down

0 comments on commit cc5bde2

Please sign in to comment.