Cleanup: use specific exception types where appropriate

This commit is contained in:
Campbell Barton
2024-10-08 09:41:53 +11:00
parent 1a1e75c253
commit 3525b83c6b
5 changed files with 5 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ API_F_ARGS = 7
def api_version():
try:
import bpy
except:
except ModuleNotFoundError:
return None, None
version = tuple(bpy.app.version[:2])
version_key = "%d.%d" % (version[0], version[1])