comparison roundup/scripts/__init__.py @ 8522:82fc69e6d9d7

refactor/bug: handle case where netrc returns None. pyrefly flagged this. Python 3.14 (and 2.7) says authenticators() returns None if there is no matching host. Also the original exceptions IOError and TypeError appear to not be valid in this context. Rewrite to scope FileNotFoundError if .netrc is missing to just the one method call. Handle rest of flow with if/else not exception jump.
author John Rouillard <rouilj@ieee.org>
date Thu, 19 Feb 2026 22:15:12 -0500
parents 6e3e4f24c753
children
comparison
equal deleted inserted replaced
8521:24e867f846dd 8522:82fc69e6d9d7

Roundup Issue Tracker: http://roundup-tracker.org/