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

Improve error handling in getRevision #41

Open
massonju opened this issue Sep 12, 2024 · 0 comments
Open

Improve error handling in getRevision #41

massonju opened this issue Sep 12, 2024 · 0 comments

Comments

@massonju
Copy link
Contributor

massonju commented Sep 12, 2024

In getRevision we catch all exception errors and display this error:

    except Exception as e:
        with redirect_stdout(sys.stderr):
            print('Cannot fetch project {}/{}'.format(remoteUrl, project))
            print(e)

However we may have different errors not related to a fetch issue.

Example: if the rev is not present in the revision dictionary, we raise an exception which is not a fetch issue

The error handling of this function can be improved.

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

No branches or pull requests

1 participant