Skip to content

Commit

Permalink
fix: be a bit more specific about the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 8, 2023
1 parent f8af550 commit 4b19fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mr.roboto/src/mr/roboto/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def run(self):
patch_data = PatchSet(
diff_data.content.splitlines(), encoding=diff_data.encoding
)
except Exception:
except UnicodeDecodeError:
patch_data = []

for diff_file in patch_data:
Expand Down

0 comments on commit 4b19fef

Please sign in to comment.