mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
don't dump upgrade notices on stderr if not attached to gui
This commit is contained in:
parent
400ca9a8a2
commit
ca07cb8f26
1 changed files with 1 additions and 1 deletions
|
@ -2922,7 +2922,7 @@ select id from facts where spaceUntil like :_ff_%d escape '\\'""" % c
|
|||
def notify(self, msg):
|
||||
"Send a notice to all listeners, or display on stdout."
|
||||
if hookEmpty("notify"):
|
||||
sys.stderr.write(msg + "\n")
|
||||
pass
|
||||
else:
|
||||
runHook("notify", msg)
|
||||
|
||||
|
|
Loading…
Reference in a new issue