]> git.phdru.name Git - xsetbg.git/commitdiff
Do not raise exception if DB file was not found
authorOleg Broytman <phd@phdru.name>
Sun, 9 Mar 2014 09:45:38 +0000 (13:45 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 9 Mar 2014 09:45:38 +0000 (13:45 +0400)
xsetbg.py creates DB file if it doesn't exist.

xsetbg_db.py

index c6a8a3fece4c4a0699cffdeb7372829cfd2d95df..126474a6a7c62721844ce4e3b1035f3baacbad90 100755 (executable)
@@ -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')