Fix: Strip whitespace from API token to prevent 401 authentication errors (#5203)

This commit is contained in:
Q-Feeds 2026-02-09 10:52:52 +01:00 committed by GitHub
parent 59d158e93a
commit f64be105b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ class QFeedsConfig:
cnf = ConfigParser()
cnf.read(config_filename)
if cnf.has_section('api') and cnf.has_option('api', 'key'):
self.api_key = cnf.get('api', 'key')
self.api_key = cnf.get('api', 'key').strip()
class Api: