Skip to content

Commit

Permalink
Fix a stack in the cni driver
Browse files Browse the repository at this point in the history
Happens when the ip.cni has no container and we try to get the netns ifconfig.
  • Loading branch information
cvaroqui committed Jun 4, 2018
1 parent ba58a8a commit adfb1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resIpCni.py
Expand Up @@ -200,7 +200,7 @@ def container_sandboxkey(self):
try:
data = self.svc.dockerlib.docker_inspect(self.container.container_id)
return data["NetworkSettings"]["SandboxKey"]
except (IndexError, KeyError):
except (AttributeError, IndexError, KeyError):
return

@lazy
Expand Down

0 comments on commit adfb1ad

Please sign in to comment.