From: Oleg Broytman Date: Sun, 9 Mar 2014 09:45:38 +0000 (+0400) Subject: Do not raise exception if DB file was not found X-Git-Tag: v4.1.0~2 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=4bc2971c551d51d84475eab9f83d00548b157409;p=xsetbg.git Do not raise exception if DB file was not found xsetbg.py creates DB file if it doesn't exist. --- 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')