Skip to content

Commit

Permalink
Fix cast to int when value is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben1700 committed Apr 18, 2024
1 parent b56ecfb commit fcad9e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cchloader/adapters/p1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fcad9e1

Please sign in to comment.