Skip to content

Commit

Permalink
Merge pull request #140 from twopir/fix-is-not
Browse files Browse the repository at this point in the history
options.learn can be None or False, don't use an `is' check
  • Loading branch information
GuillaumeSeren committed Apr 26, 2017
2 parents d084710 + 4bbdbfb commit 522fa42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion afew/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main(options, database, query_string):
sys.exit('Sorry, this feature requires Linux and pyinotify')
watch_for_new_files(options, database,
quick_find_dirs_hack(database.db_path))
elif options.learn is not False:
elif options.learn:
classifier = Classifier()
classifier.learn(
options.learn,
Expand Down

0 comments on commit 522fa42

Please sign in to comment.