coredevice/comm_generic: style

pull/605/head
Sebastien Bourdeauducq 2016-06-26 18:50:02 +08:00
parent 18cc7647ea
commit bc7d06468f
1 changed files with 2 additions and 2 deletions

View File

@ -461,7 +461,7 @@ class CommGeneric:
self._write_header(_H2DMsgType.RPC_EXCEPTION)
if hasattr(exn, 'artiq_core_exception'):
if hasattr(exn, "artiq_core_exception"):
exn = exn.artiq_core_exception
self._write_string(exn.name)
self._write_string(exn.message)
@ -476,7 +476,7 @@ class CommGeneric:
else:
exn_type = type(exn)
if exn_type in (ZeroDivisionError, ValueError, IndexError) or \
hasattr(exn, 'artiq_builtin'):
hasattr(exn, "artiq_builtin"):
self._write_string("0:{}".format(exn_type.__name__))
else:
exn_id = embedding_map.store_object(exn_type)