We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9252de commit b775278Copy full SHA for b775278
1 file changed
can/interfaces/pcan/basic.py
@@ -658,7 +658,8 @@ def __init__(self):
658
#
659
if platform.system() == "Windows":
660
# Loads the API on Windows
661
- self.__m_dllBasic = windll.LoadLibrary(find_library("PCANBasic"))
+ _dll_path = find_library("PCANBasic")
662
+ self.__m_dllBasic = windll.LoadLibrary(_dll_path) if _dll_path else None
663
aReg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
664
try:
665
aKey = winreg.OpenKey(aReg, r"SOFTWARE\PEAK-System\PEAK-Drivers")
0 commit comments