mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 09:26:27 -04:00
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
14 lines
560 B
Python
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:
|