Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankeenan committed Dec 30, 2024
1 parent 86754c8 commit a05056e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/epd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from sys import path

from PIL import Image
from filelock import Timeout as FileLockTimeout
from flask import Response, jsonify

from models import Mode
Expand Down Expand Up @@ -41,9 +40,6 @@ def handle_epd_error(e: Exception) -> tuple[Response, int]:
logging.info('Display write interrupted due to KeyboardInterrupt')
epd4in26.epdconfig.module_exit(cleanup=True)
return jsonify(message='Cancelled'), 500
elif isinstance(e, FileLockTimeout):
logging.info('Could not obtain device lock')
return jsonify(message='Device busy, please wait for current request to complete'), 409
else:
logging.error(f'Unexpected error occurred - {str(e)}')
return jsonify(message='Unexpected error occurred'), 500

0 comments on commit a05056e

Please sign in to comment.