Skip to content

Commit

Permalink
Edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic committed Jul 16, 2024
1 parent 4fc4a77 commit 6894eef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bot/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ def save_post(
integration_uid: str,
integration_index: typing.Optional[int] = None,
) -> models.Post:
if not integration_uid:
raise exceptions.RepositoryError('Error occured, contact support.')

return models.Post.objects.create(
integration=integration,
integration_uid=integration_uid,
Expand Down

0 comments on commit 6894eef

Please sign in to comment.