Skip to content

Commit 0a6025b

Browse files
committed
Fix unassigned variable in insights
1 parent 00072d4 commit 0a6025b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cassandra/datastax/insights/reporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def _get_startup_data(self):
121121
try:
122122
local_ipaddr = cc._connection._socket.getsockname()[0]
123123
except Exception as e:
124+
local_ipaddr = None
124125
log.debug('Unable to get local socket addr from {}: {}'.format(cc._connection, e))
125126
hostname = socket.getfqdn()
126127

0 commit comments

Comments
 (0)