Commit 673cc07
committed
Python3: fix crash bug when importing binary file (like jpeg). The
hyperdb content property inteprets the file as text and raises an
error if the UTF-8 decode fails. To fix, read file as binary/byte and
do conversion (ignoring errors) at the import level not the hyperdb
level.1 parent b002ab2 commit 673cc07
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
1685 | 1691 | | |
1686 | | - | |
| 1692 | + | |
1687 | 1693 | | |
1688 | 1694 | | |
1689 | 1695 | | |
| |||
0 commit comments