Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #26483

Closed
Open
Opened Jun 24, 2018 by dmr@dmr

Static check results in "local variable 'exc' is assigned to but never used"

[updated to 2.0.0] now additionally "[checks] for unused exception binding in except: block", causing the following lint errors:

STATIC CHECKS
* /path/to/stem/descriptor/reader.py
  line 515  - local variable 'exc' is assigned to but never used | except TypeError as exc:

* /path/to/stem/util/system.py
  line 1327 - local variable 'exc' is assigned to but never used | except CallTimeoutError as exc:

* /path/to/stem/interpreter/__init__.py
  line 148  - local variable 'exc' is assigned to but never used | except (KeyboardInterrupt, stem.SocketClosed) as exc:
  line 172  - local variable 'exc' is assigned to but never used | except stem.SocketClosed as exc:
  line 184  - local variable 'exc' is assigned to but never used | except (KeyboardInterrupt, EOFError, stem.SocketClosed) as exc:

line numbers as of [[https://gitweb.torproject.org/stem.git/tree/stem/?id=3818cf41cae98ae7558f5002ef3a5152ede5b2fb|3818cf41cae98ae7558f5002ef3a5152ede5b2fb]]

Strangely, those only appear for py35 runs - I didn't see them in my py27 runs. Not sure why that is.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#26483