Skip to content

Conversation

@ValentinFrancois
Copy link
Owner

See #29

Comment on lines -11 to -14

logger = logging.getLogger(__name__)


Copy link
Owner Author

Choose a reason for hiding this comment

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

side cleanup

Comment on lines -31 to +30
except GitlabGetError:
except (GitlabGetError, GitlabHttpError):
Copy link
Owner Author

Choose a reason for hiding this comment

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

@mertemba would you agree that it makes more sense to catch the GitlabHttpError here?
The FileNotFoundError does not come from python-gitlab actually, it comes from my code (see the raise FileNotFoundError at line 33/34 below)

@ValentinFrancois ValentinFrancois merged commit 0ed164d into main Jun 28, 2025
@ValentinFrancois ValentinFrancois deleted the fix/catch-HTTP-error branch June 28, 2025 16:57
@mertemba
Copy link
Contributor

@ValentinFrancois Yes, this seems even cleaner. Thanks for looking after that!

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