From bc7d06468f0515406c420905bc42a5bea3992691 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 26 Jun 2016 18:50:02 +0800 Subject: [PATCH] coredevice/comm_generic: style --- artiq/coredevice/comm_generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/coredevice/comm_generic.py b/artiq/coredevice/comm_generic.py index 55462c961..7a94f0459 100644 --- a/artiq/coredevice/comm_generic.py +++ b/artiq/coredevice/comm_generic.py @@ -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)