mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e0871ec10d
commit
9c582259be
@ -495,7 +495,7 @@ def singleinstance():
|
|||||||
|
|
||||||
def update_stats():
|
def update_stats():
|
||||||
log = olog = 'stats.log'
|
log = olog = 'stats.log'
|
||||||
if not os.path.exists(log):
|
if os.geteuid() != 0 or not os.path.exists(log):
|
||||||
return {}
|
return {}
|
||||||
stats = {}
|
stats = {}
|
||||||
if IS_PRODUCTION:
|
if IS_PRODUCTION:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user