Skip to content

Commit

Permalink
Fix TypeError reported on Nmap GitHub PR
Browse files Browse the repository at this point in the history
  • Loading branch information
kulikjak committed Aug 25, 2022
1 parent e3ccf40 commit 1ebece3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenmap/radialnet/gui/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_pixels_for_cairo_image_surface(pixbuf):
if image_format == FORMAT_RGBA:
a = pixbuf.get_pixels()[i + FORMAT_RGBA - 1]
elif image_format == FORMAT_RGB:
a = '\xff'
a = 255
else:
raise TypeError('unknown image format')

Expand Down

0 comments on commit 1ebece3

Please sign in to comment.