Skip to content

Commit 5531696

Browse files
committed
Merge branch 'dev'
2 parents bbb662d + 6788cf8 commit 5531696

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

code/manager/QgsMultiplexor.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,11 @@ def CreateMISB(self):
428428
# targetWidth = 0.0
429429
targetWidth = 2.0 * slantRange * tan(radians(HFOV / 2.0))
430430

431-
_bytes = float_to_bytes(round(targetWidth, 4), _domain22, _range22)
431+
try:
432+
_bytes = float_to_bytes(round(targetWidth, 4), _domain22, _range22)
433+
except Exception:
434+
_bytes = float_to_bytes(round(0.0, 4), _domain22, _range22)
435+
432436
_len = int_to_bytes(len(_bytes))
433437
_bytes = _key22 + _len + _bytes
434438
sizeTotal += len(_bytes)

0 commit comments

Comments
 (0)