File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/aleph_client/commands/instance Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -344,10 +344,15 @@ def _prepare_allocation_column(self):
344
344
color_allocation = "magenta3"
345
345
crn_hash = safe_getattr (self .message .content .requirements , "node.node_hash" ) or ""
346
346
else :
347
- crn_url = self .allocation .allocations .node .url
347
+ allocation_node = (
348
+ self .allocation .allocations .node
349
+ if self .allocation .allocations and self .allocation .allocations .node
350
+ else None
351
+ )
352
+ crn_url = allocation_node .url if allocation_node else ""
348
353
allocation_str = ALLOCATION_AUTO
349
354
color_allocation = "deep_sky_blue1"
350
- crn_hash = self . allocation . allocations . node . node_id
355
+ crn_hash = allocation_node . node_id if allocation_node else ""
351
356
352
357
# Assemble the complete allocation column
353
358
self .allocation_column = cast (
You can’t perform that action at this time.
0 commit comments