Skip to content

Commit 6a36d0d

Browse files
committed
catch TypeError in HardwareReservation device assignment
Signed-off-by: Marques Johansson <[email protected]>
1 parent a2c8098 commit 6a36d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packet/HardwareReservation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, data, manager):
4747
try:
4848
device_data = self.manager.call_api(data["device"]["href"], type="GET")
4949
self.device = Device(device_data, self.manager)
50-
except (KeyError, IndexError):
50+
except (KeyError, IndexError, TypeError):
5151
self.attached_to = None
5252

5353
def __str__(self):

0 commit comments

Comments
 (0)