Bluetooth + Try Except
Arnau Sanchez
pyarnau en gmail.com
Vie Abr 18 00:21:55 CEST 2008
Renato Droguett escribió:
> try:
>
> lightblue.obex.sendfile(host, port, "vaciones.jpg")
>
> except lightblue.BluetoothError, e:
>
> print e
>
> esta instancia me arroja un error 115 o 111 dependiendo de caso que se ve asi
>
> (115, 'Operation now in progress')
>
¿algo así?
try:
lightblue.obex.sendfile(host, port, "vaciones.jpg")
except lightblue.BluetootError, (errcode, details):
print "error %d: %s" % (errcode, details)
_______________________________________________
Lista de correo Python-es
http://listas.aditel.org/listinfo/python-es
FAQ: http://listas.aditel.org/faqpyes
Más información sobre la lista de distribución Python-es