Skip to content

Commit c8072bd

Browse files
committed
Fix tests: Not every channel has a closing (especially in tests).
1 parent 4e36d93 commit c8072bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/xmlrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def getresponse(self, body):
134134
outgoing_producer = producers.composite_producer(self.request.outgoing)
135135

136136
# apply a few final transformations to the output
137-
if not self.request.channel.closing:
137+
if not getattr(self.request.channel, "closing", False):
138138
self.request.channel.push_with_producer(
139139
# globbing gives us large packets
140140
producers.globbing_producer(

0 commit comments

Comments
 (0)