mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update src/yunohost/log.py
This commit is contained in:
parent
5af70af47d
commit
caef1e0577
1 changed files with 5 additions and 1 deletions
|
@ -373,7 +373,11 @@ def is_unit_operation(
|
|||
if field in context:
|
||||
context.pop(field, None)
|
||||
|
||||
# Manage file or stream
|
||||
# Context is made from args given to main function by argparse
|
||||
# This context will be added in extra parameters in yml file, so this context should
|
||||
# be serializable and short enough (it will be displayed in webadmin)
|
||||
# Argparse can provide some File or Stream, so here we display the filename or
|
||||
# the IOBase, if we have no name.
|
||||
for field, value in context.items():
|
||||
if isinstance(value, IOBase):
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue