1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00

style: fix F841 local variable is assigned to but never used

This commit is contained in:
Pavol Rusnak 2018-10-06 13:38:30 +02:00
parent 7834d06aac
commit 6bced8bb54
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ def _step(task, value):
result = task.throw(value) result = task.throw(value)
else: else:
result = task.send(value) result = task.send(value)
except StopIteration as e: except StopIteration: # as e:
if __debug__: if __debug__:
log.debug(__name__, "finish: %s", task) log.debug(__name__, "finish: %s", task)
except Exception as e: except Exception as e:

View File

@ -154,7 +154,7 @@ async def protobuf_workflow(ctx, reader, handler, *args):
# respond with specific code and message # respond with specific code and message
await ctx.write(Failure(code=exc.code, message=exc.message)) await ctx.write(Failure(code=exc.code, message=exc.message))
raise raise
except Exception as exc: except Exception: # as exc:
# respond with a generic code and message # respond with a generic code and message
await ctx.write( await ctx.write(
Failure(code=FailureType.FirmwareError, message="Firmware error") Failure(code=FailureType.FirmwareError, message="Firmware error")