view demo.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 7f0bc46aee67
children
line wrap: on
line source

#!/usr/bin/env python3
import sys
import roundup

from roundup.demo import main

sys.exit(main())

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