Skip to content

Commit a87de84

Browse files
committed
fix potential issue
1 parent 0ee81e0 commit a87de84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exabgp/application/healthcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def loopback_ips(label, label_only, label_exact_match):
202202
)
203203
cmd = subprocess.Popen('/sbin/ifconfig lo0'.split(), shell=False, stdout=subprocess.PIPE)
204204
labelre = re.compile(r'')
205-
for line in cmd.stdout:
205+
for line in (cmd.stdout or []):
206206
line = line.decode('ascii', 'ignore').strip()
207207
mo = ipre.match(line)
208208
if not mo:

0 commit comments

Comments
 (0)