Skip to content

Commit e7dbe41

Browse files
authored
Update autocompose.py
Print error message to stderr so that I will be seen when redirecting stdout to `docker-compose.yml`
1 parent d976d52 commit e7dbe41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autocompose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def generate(cname):
3232
try:
3333
cid = [x.short_id for x in c.containers.list(all=True) if cname == x.name or x.short_id in cname][0]
3434
except IndexError:
35-
print("That container is not available.")
35+
print("That container is not available.", file=sys.stderr)
3636
sys.exit(1)
3737

3838
cattrs = c.containers.get(cid).attrs

0 commit comments

Comments
 (0)