Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion getnative/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ def _getnative():
elif args.mode == "all":
mode = [s for scaler in common_scaler.values() for s in scaler]

loop = asyncio.get_event_loop()
try:
loop = asyncio.get_event_loop()
except RuntimeError:
loop = asyncio.new_event_loop()
for i, scaler in enumerate(mode):
if scaler is not None and scaler.plugin is None:
print(f"Warning: No correct descale version found for {scaler}, continuing with next scaler when available.", file=sys.stderr)
Expand Down