Skip to content

Commit

Permalink
fix: encoding errors when opening patch files
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieucan committed Jul 19, 2021
1 parent 5b0c092 commit 4c03ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/debsources/app/patches/patches_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def get_patch_details(path):
"""Parse a patch to extract the description and or bug if it exists"""
with open(path, "r") as content_file:
with open(path, "r", errors="ignore") as content_file:
patch = content_file.read()
# check if subject exists
keywords = ["description:", "subject:"]
Expand Down

0 comments on commit 4c03ebd

Please sign in to comment.