mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not print error messages during plugin initialization to stdout.
This non-fatal warning emits output during calibredb commands and breaks scripting.
This commit is contained in:
parent
2302cb6a96
commit
14aa61d246
@ -750,7 +750,7 @@ def initialize_plugins(perf=False):
|
|||||||
times[plugin.name] = time.time() - st
|
times[plugin.name] = time.time() - st
|
||||||
_initialized_plugins.append(plugin)
|
_initialized_plugins.append(plugin)
|
||||||
except:
|
except:
|
||||||
print('Failed to initialize plugin:', repr(zfp))
|
print('Failed to initialize plugin:', repr(zfp), file=sys.stderr)
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
# Prevent a custom plugin from overriding stdout/stderr as this breaks
|
# Prevent a custom plugin from overriding stdout/stderr as this breaks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user