mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 00:33:19 +02:00
...
This commit is contained in:
parent
e0871ec10d
commit
9c582259be
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ def singleinstance():
|
|||
|
||||
def update_stats():
|
||||
log = olog = 'stats.log'
|
||||
if not os.path.exists(log):
|
||||
if os.geteuid() != 0 or not os.path.exists(log):
|
||||
return {}
|
||||
stats = {}
|
||||
if IS_PRODUCTION:
|
||||
|
|
|
|||
Loading…
Reference in a new issue