Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash when settings like realname are not set. #1405

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

adrianschroeter
Copy link
Member

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 "", line 684, in setitem
File "", line 758, in encode
TypeError: str expected, not NoneType

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
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (c5e4f04) 30.35% compared to head (2e8fa9e) 30.35%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1405      +/-   ##
==========================================
- Coverage   30.35%   30.35%   -0.01%     
==========================================
  Files          49       49              
  Lines       17685    17686       +1     
==========================================
  Hits         5368     5368              
- Misses      12317    12318       +1     
Files Changed Coverage Δ
osc/core.py 35.19% <0.00%> (-0.01%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dmach dmach merged commit 0417ddf into openSUSE:master Sep 13, 2023
28 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants