Skip to content

Commit

Permalink
Make periodic pull error descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
mejroslav committed Sep 25, 2023
1 parent 26093ad commit af9bc8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions asab/library/providers/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ async def _periodic_pull(self, event_name):
# Once reset of the head is finished, PubSub message about the change in the subscribed directory gets published.
for path in to_publish:
self.App.PubSub.publish("Library.change!", self, path)
except pygit2.GitError:
L.warning("Periodic pull from the remote repository failed.")
except pygit2.GitError as err:
L.warning(
"Periodic pull from the remote repository failed: {}".format(err),
struct_data={"url": self.URLPath}
)
finally:
self.PullLock = False

Expand Down

0 comments on commit af9bc8a

Please sign in to comment.