Skip to content

Commit

Permalink
Merge pull request dheera#129 from soraxas/patch-1
Browse files Browse the repository at this point in the history
Fixes UnboundLocalError
  • Loading branch information
dheera authored Aug 8, 2024
2 parents 43c34e0 + 13693c2 commit c09020f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rosboard/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def compress_compressed_image(msg, output):
img_jpeg = encode_jpeg(img)
except Exception as e:
output["_error"] = "Error: %s" % str(e)
return
output["_data_jpeg"] = base64.b64encode(img_jpeg).decode()
output["_data_shape"] = list(original_shape)

Expand Down

0 comments on commit c09020f

Please sign in to comment.