Skip to content

Commit 21cb2d8

Browse files
committed
adding return None to _handle_integer when Service gives None or Null value
1 parent 96cb85e commit 21cb2d8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

botocore/parsers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,10 @@ def _handle_boolean(self, shape, value):
13311331
return ensure_boolean(value)
13321332

13331333
def _handle_integer(self, shape, value):
1334-
return int(value)
1334+
if value is None:
1335+
return None
1336+
else:
1337+
return int(value)
13351338

13361339
def _handle_float(self, shape, value):
13371340
return float(value)

0 commit comments

Comments
 (0)