Код: Выделить всё
try:
msg = TPCANMsg()
timestamp = TPCANTimestamp()
res = self.__m_dllBasic.CAN_Read(Channel,byref(msg),byref(timestamp))
return TPCANStatus(res),msg,timestamp
except:
print ("Exception on PCANBasic.Read")
raise
Код: Выделить всё
Exception on PCANBasic.Read
Код: Выделить всё
try:
msg = TPCANMsg()
timestamp = TPCANTimestamp()
res = self.__m_dllBasic.CAN_Read(Channel,byref(msg),byref(timestamp))
return TPCANStatus(res),msg,timestamp
except KeyboardInterrupt:
print("Keyboard interupt")
except GeneratorExit:
print("Generator interupt")
except SystemExit as e:
print(f"System Exit Exception on PCANBasic.Read with code: {e.code}")
except Exception as e:
print (f"Exception on PCANBasic.Read: {e}")
raise
Код: Выделить всё
System Exit Exception on PCANBasic.Read with code: None
Что может быть причиной этого?
Подробнее здесь: https://stackoverflow.com/questions/790 ... basic-read