diff --git a/cchloader/adapters/p1.py b/cchloader/adapters/p1.py index dca80f2..6a4e6e6 100644 --- a/cchloader/adapters/p1.py +++ b/cchloader/adapters/p1.py @@ -55,8 +55,8 @@ def valid_measure(self, data): r2quality = int(data.get('r2quality')) r3quality = int(data.get('r3quality')) r4quality = int(data.get('r4quality')) - reserve1quality = int(data.get('reserve1quality')) - reserve2quality = int(data.get('reserve2quality')) + reserve1quality = int(data.get('reserve1quality') or 0) + reserve2quality = int(data.get('reserve2quality') or 0) aovalid = 0 if aoquality < 128: