ports/graphics/upscaler/files/patch-upscaler_window.py
Jan Beich 4b15a96231 graphics/upscaler: add new port
Upscaler is a GTK4 + libadwaita application that allows you to upscale
and enhance a given image. It is a front-end for Real-ESRGAN ncnn Vulkan.

https://gitlab.com/TheEvilSkeleton/Upscaler
2023-01-03 07:36:42 +00:00

14 lines
560 B
Python

Avoid spurious error "Algorithm failed" as poll() returns None when
the subprocess hasn't finished yet.
--- upscaler/window.py.orig 2022-12-10 21:01:05 UTC
+++ upscaler/window.py
@@ -203,7 +203,7 @@ class UpscalerWindow(Adw.ApplicationWindow):
bad = True
continue
""" Process algorithm output. """
- result = self.process.poll()
+ result = self.process.wait(1)
if result != 0:
raise AlgorithmFailed(result, output)
if bad: