[openSUSE/osc] 2e8fa9: fix crash when settings like realname are not set.
Branch: refs/heads/master Home: https://github.com/openSUSE/osc Commit: 2e8fa9ef12a68f95295c713c7f0a6264447e3b8e https://github.com/openSUSE/osc/commit/2e8fa9ef12a68f95295c713c7f0a6264447e3... Author: Adrian Schröter <adrian@suse.de> Date: 2023-09-13 (Wed, 13 Sep 2023) Changed paths: M osc/core.py Log Message: ----------- fix crash when settings like realname are not set. Otherwise: File "/usr/lib/python3.11/site-packages/osc/core.py", line 451, in execute result = self._execute(dir, old_dir, callmode, singleservice, verbose) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/osc/core.py", line 493, in _execute vc_export_env(self.apiurl) File "/usr/lib/python3.11/site-packages/osc/core.py", line 8917, in vc_export_env os.environ[env] = val ~~~~~~~~~~^^^^^ File "<frozen os>", line 684, in __setitem__ File "<frozen os>", line 758, in encode TypeError: str expected, not NoneType Commit: 0417ddf9528f6431cb6e1fdcc978ec59c6ec9b9e https://github.com/openSUSE/osc/commit/0417ddf9528f6431cb6e1fdcc978ec59c6ec9... Author: Daniel Mach <daniel.mach@suse.com> Date: 2023-09-13 (Wed, 13 Sep 2023) Changed paths: M osc/core.py Log Message: ----------- Merge pull request #1405 from adrianschroeter/fix fix crash when settings like realname are not set. Compare: https://github.com/openSUSE/osc/compare/a5f56b16733b...0417ddf9528f
participants (1)
-
Daniel Mach