Skip to content

Commit 006fda5

Browse files
committed
added none-safety check
1 parent d41e868 commit 006fda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda/aws_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def update_function(
637637
}
638638

639639
if preserve_vpc:
640-
kwargs['VpcConfig'] = existing_cfg.get('Configuration').get('VpcConfig')
640+
kwargs['VpcConfig'] = existing_cfg.get('Configuration', {}).get('VpcConfig')
641641
if kwargs['VpcConfig'] is None:
642642
kwargs['VpcConfig'] = {
643643
'SubnetIds': cfg.get('subnet_ids', []),

0 commit comments

Comments
 (0)