Skip to content

Commit

Permalink
[pylint] Use sys.exit() instead of exit() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShortCloud committed Apr 25, 2020
1 parent aa082c1 commit a308d8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cgc/cgc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
printable format
"""

from sys import exit as sys_exit
import logging
import tempfile
from multiprocessing import Queue, Process
Expand Down Expand Up @@ -305,7 +306,7 @@ def images_merge(self, images_merge_method, image_paths,
else:
logging.error("Incorrect images_merge_method specificed. \
Please use horizontal or vertical.")
exit(1)
sys_exit(1)

merged_image = Image.new("RGB", (merged_width, merged_height))
merged_pixel_offset = 0
Expand Down

0 comments on commit a308d8f

Please sign in to comment.