Skip to content

CP-49909: Moved install-sup-pack from scripts/plugins to python3/plugins directory #5739

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

Merged
merged 1 commit into from
Jun 26, 2024
Merged

CP-49909: Moved install-sup-pack from scripts/plugins to python3/plugins directory #5739

merged 1 commit into from
Jun 26, 2024

Conversation

ashwin9390
Copy link
Contributor

Main ticket CP-49100 :Move python3 scripts from scripts directory to python3 directory.

Sub task CP-49909:
-Move install-sup-pack from scripts/plugins to python3/plugins directory
-Fix static code checker issue with respect to bare-except and raise-missing-from exception

Signed-off-by: Ashwinh ashwin.h@cloud.com

…ins directory

- fixed bare-except and raise-missing errors

Signed-off-by: Ashwinh <ashwin.h@cloud.com>
Copy link
Collaborator

@bernhardkaindl bernhardkaindl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Details / Explanation: Also the change in line 60 is correct:

  error = json.loads(str(e))[1].encode("utf8")
-     except:
+     except Exception:
         error = str(e)

Checking it requires reading the context of the location above.

e is raised by the parent exception handler, and this exception is just a fallback for the error message.

So, I confirm the change to be correct and approve.

@bernhardkaindl bernhardkaindl merged commit c5c2bfe into xapi-project:feature/py3 Jun 26, 2024
14 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.

3 participants