Skip to content

Commit

Permalink
fix: return commented code to check if static folder exits
Browse files Browse the repository at this point in the history
Signed-off-by: Harisankar P S <[email protected]>
  • Loading branch information
coderhs committed Oct 3, 2024
1 parent db12393 commit 9d9aae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sanescansrv/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def preform_scan(
if out_type not in {"pnm", "tiff", "png", "jpeg"}:
raise ValueError("Output type must be pnm, tiff, png, or jpeg")
filename = f"{str(uuid.uuid4())}_scan.{out_type}"
# assert app.static_folder is not None
assert app.static_folder is not None
if not path.exists("/tmp/sanesansrv/"):
makedirs("/tmp/sanesansrv/")
if not path.exists(Path(app.static_folder+"/scans")):
Expand Down

0 comments on commit 9d9aae9

Please sign in to comment.