Skip to content

Commit 533b7a6

Browse files
committed
Bump version to 'v0.9.0b12'.
1 parent e55e505 commit 533b7a6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

sdl3/__init__.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""A pure Python wrapper for SDL3."""
22

3-
__version__ = "0.9.0b11"
3+
__version__ = "0.9.0b12"
44

55
import sys, os, requests, ctypes, platform, keyword, inspect, \
66
asyncio, aiohttp, re, typing, array, atexit, packaging.version
@@ -243,16 +243,17 @@ def SDL_GET_NAME(i):
243243
return f"{result}\n{definitions}"
244244

245245
def SDL_GET_OR_GENERATE_DOCS():
246-
for release in requests.get(f"https://api.github.com/repos/Aermoss/PySDL3/releases").json():
247-
if release["tag_name"] != __version__:
248-
continue
246+
try:
247+
for release in requests.get(f"https://api.github.com/repos/Aermoss/PySDL3/releases").json():
248+
if release["tag_name"] != __version__:
249+
continue
249250

250-
for asset in release["assets"]:
251-
if asset["name"] != f"{SDL_SYSTEM.lower()}-docs.py": continue
252-
print(asset)
253-
return requests.get(asset["browser_download_url"]).text
251+
for asset in release["assets"]:
252+
if asset["name"] != f"{SDL_SYSTEM.lower()}-docs.py": continue
253+
return requests.get(asset["browser_download_url"]).text
254254

255-
return SDL_GENERATE_DOCS()
255+
finally:
256+
return SDL_GENERATE_DOCS()
256257

257258
from .SDL import *
258259

0 commit comments

Comments
 (0)