From 4bc2971c551d51d84475eab9f83d00548b157409 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 9 Mar 2014 13:45:38 +0400 Subject: [PATCH] Do not raise exception if DB file was not found xsetbg.py creates DB file if it doesn't exist. --- xsetbg_db.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/xsetbg_db.py b/xsetbg_db.py index c6a8a3f..126474a 100755 --- a/xsetbg_db.py +++ b/xsetbg_db.py @@ -32,8 +32,6 @@ if not xsetbg_db_path: xsetbg_db_path = os.path.join(d, 'xsetbg.db') if os.path.exists(xsetbg_db_path): break - else: - raise RuntimeError("Cannot find xsetbg.db; searched %s", db_dirs) try: xsetbg_db = shelve.open(xsetbg_db_path, 'r') -- 2.39.2