Skip to content

Commit

Permalink
Pico: fix warnings from LGTM.
Browse files Browse the repository at this point in the history
  • Loading branch information
flit committed Feb 25, 2021
1 parent 3f08c3c commit 83af211
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyocd/probe/picoprobe.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def __call__(self, dev):
try:
# This can fail on Linux if the configuration is already active.
dev.set_configuration()
except:
except Exception:
# But do no act on possible errors, they'll be caught in the next try: clause
pass

Expand Down
1 change: 0 additions & 1 deletion pyocd/probe/pydapaccess/cmsis_dap_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import array
from .dap_access_api import DAPAccessIntf
from ...utility import compatibility

class Command:
DAP_INFO = 0x00
Expand Down
4 changes: 2 additions & 2 deletions pyocd/target/builtin/target_RP2040.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

from ...core import exceptions
from ...coresight.coresight_target import CoreSightTarget
from ...core.memory_map import (RomRegion, FlashRegion, RamRegion, DeviceRegion, MemoryMap)
from ...core.memory_map import (RomRegion, FlashRegion, RamRegion, MemoryMap)
from ...probe.swj import SWJSequenceSender
from ...probe.debug_probe import DebugProbe
from ...utility import (conversion, mask)
from ...utility import mask

LOG = logging.getLogger(__name__)

Expand Down

0 comments on commit 83af211

Please sign in to comment.