fixes broken nightlies; follow up #22544 (#22585)

ref https://github.com/nim-lang/nightlies/actions/runs/5970369118/job/16197865657

> /home/runner/work/nightlies/nightlies/nim/lib/pure/os.nim(678, 30) Error: getApplOpenBsd() can raise an unlisted exception: ref OSError
This commit is contained in:
ringabout
2023-08-29 16:40:19 +08:00
committed by GitHub
parent d8ffc6a75e
commit 1fcb53cded

View File

@@ -675,7 +675,7 @@ proc getAppFilename*(): string {.rtl, extern: "nos$1", tags: [ReadIOEffect], noW
elif defined(haiku):
result = getApplHaiku()
elif defined(openbsd):
result = getApplOpenBsd()
result = try: getApplOpenBsd() except OSError: ""
elif defined(nintendoswitch):
result = ""