We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cf8d3 commit b7f3215Copy full SHA for b7f3215
1 file changed
awscli/telemetry.py
@@ -111,8 +111,8 @@ def _create_host_id_table(self):
111
112
def _ensure_host_id(self):
113
cur = self.execute(self._CHECK_HOST_ID)
114
- host_id_ct = cur.fetchone()[0]
115
- if host_id_ct == 0:
+ host_id_ct = cur.fetchone()
+ if host_id_ct and host_id_ct[0] == 0:
116
self.execute(
117
self._INSERT_HOST_ID,
118
# Hardcode `0` as primary key to ensure
0 commit comments