From 66b6195bffbb50ae95267b897a014774bfc69c9d Mon Sep 17 00:00:00 2001 From: Milan Stute Date: Tue, 17 Dec 2019 20:24:53 +0100 Subject: [PATCH] Fix two LGTM issues --- opendrop/cli.py | 1 - opendrop/client.py | 1 - 2 files changed, 2 deletions(-) diff --git a/opendrop/cli.py b/opendrop/cli.py index 5e8714f..5e364e5 100644 --- a/opendrop/cli.py +++ b/opendrop/cli.py @@ -125,7 +125,6 @@ class AirDropCli: except KeyError: # TODO in some cases, `flags` are not set in service info; for now we'll try anyway flags = AirDropReceiverFlags.SUPPORTS_DISCOVER_MAYBE - pass if flags & AirDropReceiverFlags.SUPPORTS_DISCOVER_MAYBE: try: diff --git a/opendrop/client.py b/opendrop/client.py index 5355a46..32d1f5d 100644 --- a/opendrop/client.py +++ b/opendrop/client.py @@ -273,7 +273,6 @@ class HTTPSConnectionAWDL(HTTPSConnection): sock.bind(source_address) sock.connect(sa) # Break explicitly a reference cycle - err = None return sock except socket.error as _: