Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0854950

Browse files
committed
minor adjustment
1 parent f1ab887 commit 0854950

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=
759759
else:
760760
message = data
761761

762-
if content_type is not None and status is not None:
762+
if hasattr(conf, "api"):
763763
sys.stdout.write(message, status=status, content_type=content_type)
764764
else:
765765
sys.stdout.write(setColor(message, bold))

0 commit comments

Comments
 (0)