mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Add patch for issue4265
This commit is contained in:
parent
e13e47f8f5
commit
3c6f4bc804
21
issue13631002_1.diff
Normal file
21
issue13631002_1.diff
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: tryton/tryton/common/common.py
|
||||
===================================================================
|
||||
|
||||
--- a/tryton/tryton/common/common.py
|
||||
+++ b/tryton/tryton/common/common.py
|
||||
@@ -1577,8 +1577,10 @@
|
||||
|
||||
|
||||
def data2pixbuf(data):
|
||||
- try:
|
||||
- pixbuf = _data2pixbuf(data)
|
||||
- except glib.GError:
|
||||
- pixbuf = NO_IMG_PIXBUF
|
||||
+ pixbuf = NO_IMG_PIXBUF
|
||||
+ if data:
|
||||
+ try:
|
||||
+ pixbuf = _data2pixbuf(data)
|
||||
+ except glib.GError:
|
||||
+ pass
|
||||
return pixbuf
|
||||
|
Loading…
Reference in a new issue