File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -626,14 +626,17 @@ def setup_vcs(self):
626
626
try :
627
627
self .sync_repo ()
628
628
except RepositoryError :
629
- # Do not log as ERROR handled exceptions
630
629
log .warning ('There was an error with the repository' , exc_info = True )
630
+ # Re raise the exception to stop the build at this point
631
+ raise
631
632
except vcs_support_utils .LockTimeout :
632
633
log .info (
633
634
'Lock still active: project=%s version=%s' ,
634
635
self .project .slug ,
635
636
self .version .slug ,
636
637
)
638
+ # Raise the proper exception (won't be sent to Sentry)
639
+ raise VersionLockedError
637
640
except Exception :
638
641
# Catch unhandled errors when syncing
639
642
log .exception (
@@ -647,6 +650,8 @@ def setup_vcs(self):
647
650
},
648
651
},
649
652
)
653
+ # Re raise the exception to stop the build at this point
654
+ raise
650
655
651
656
commit = self .project .vcs_repo (self .version .slug ).commit
652
657
if commit :
You can’t perform that action at this time.
0 commit comments