mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
nmbug-status: Don't require write access
The database in only used for notmuch.Query, so there's no need for write access. This allows nmbug-status to run while the database is being updated, without raising: A Xapian exception occurred opening database: Unable to get write lock on …: already locked Traceback (most recent call last): File "./nmbug-status", line 182, in <module> db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE) File "/…/notmuch/database.py", line 154, in __init__ self.open(path, mode) File "/…/notmuch/database.py", line 214, in open raise NotmuchError(status) notmuch.errors.XapianError
This commit is contained in:
parent
e4d79bfddb
commit
a7e4d9a18f
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ else:
|
||||||
|
|
||||||
# main program
|
# main program
|
||||||
|
|
||||||
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
|
db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)
|
||||||
|
|
||||||
if output_format == 'html':
|
if output_format == 'html':
|
||||||
print('''<?xml version="1.0" encoding="utf-8" ?>
|
print('''<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
Loading…
Reference in a new issue