-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(command/inner/utils):
calculate_update
cannot handle empty entries
A completely empty entry will make `calculate_update` use `entry.content` as an alternative hash source. Though it is always a list, it was mistakenly assumed to be a string, making such a fallback causing AttributeError. Fix it by extracting the first non-empty `content.value` in such a circumstance. Signed-off-by: Rongrong <[email protected]>
- Loading branch information
1 parent
ed59aaa
commit f17326f
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters