Skip to content

Commit

Permalink
Fixups. #1415
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Mar 14, 2024
1 parent 8f5d885 commit 98f168b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python-pscheduler/pscheduler/pscheduler/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

import multiprocessing
import multiprocessing.dummy
import netaddr
import netifaces
import os
import re
import socket
import threading
import urllib
Expand Down Expand Up @@ -67,7 +69,7 @@ def api_local_host_name():
key=lambda v: [v.is_loopback(), v.version, v.sort_key()],
reverse=True)
try:
return addresses[0]
return str(addresses[0])
except IndexError:
raise RuntimeError('No interfaces found on this system')

Expand Down

0 comments on commit 98f168b

Please sign in to comment.