Merge pull request #1173 from jeromelebleu/fix/pypofile-config

Fix missing 'fallback' kwarg for base_port in pypofile
This commit is contained in:
Kyle Robbertze 2021-02-04 08:03:11 +02:00 committed by GitHub
commit 0af61b8136
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ class PypoFile(Thread):
CONFIG_SECTION = "general" CONFIG_SECTION = "general"
username = self._config.get(CONFIG_SECTION, 'api_key') username = self._config.get(CONFIG_SECTION, 'api_key')
baseurl = self._config.get(CONFIG_SECTION, 'base_url') baseurl = self._config.get(CONFIG_SECTION, 'base_url')
port = self._config.get(CONFIG_SECTION, 'base_port', 80) port = self._config.get(CONFIG_SECTION, 'base_port', fallback=80)
if self._config.getboolean(CONFIG_SECTION, 'force_ssl', fallback=False): if self._config.getboolean(CONFIG_SECTION, 'force_ssl', fallback=False):
protocol = 'https' protocol = 'https'
else: else: