Skip to content

Commit 657cd80

Browse files
committed
Rename exception for pylint
1 parent 3ce927d commit 657cd80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_bitmapsaver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def save_pixels(file_or_filename, pixel_source=board.DISPLAY, palette=None):
138138
_write_bmp_header(output_file, filesize)
139139
_write_dib_header(output_file, width, height)
140140
_write_pixels(output_file, pixel_source, palette)
141-
except Exception as e:
142-
raise e
141+
except Exception as ex:
142+
raise ex
143143
else:
144144
output_file.close()

0 commit comments

Comments
 (0)