From c2299f7e1d503bc7634ef774ed12787f3702b3ce Mon Sep 17 00:00:00 2001 From: Mike Kazantsev Date: Mon, 7 Jan 2013 23:14:24 +0600 Subject: [PATCH] Fix for finishing with no --reported-db specified --- image_matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_matcher.py b/image_matcher.py index 2ae8156..b61fe03 100755 --- a/image_matcher.py +++ b/image_matcher.py @@ -189,7 +189,7 @@ def quote_split(arg_line): if optz.top_n is not None and n >= optz.top_n: break except KeyboardInterrupt: sys.exit(0) finally: - if optz.reported_db is not None: optz.reported_db.sync() + if optz.reported_db: optz.reported_db.sync() if __name__ == '__main__': main()