Skip to content

Commit

Permalink
fix pklaus#17
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 committed Apr 24, 2023
1 parent e936691 commit ddcc4b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ds1054z/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def main():
if args.action == 'save-screen':
try:
from PIL import Image, ImageOps, ImageEnhance
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
except ImportError:
parser.error('Please install Pillow (or the older PIL) to use --save-screen')
# formatting the filename
Expand Down

0 comments on commit ddcc4b2

Please sign in to comment.