Commits

Christophe de Vienne committed b2272f8

Fix binary null value conversion to base64

  • Participants
  • Parent commits 71c564b

Comments (0)

Files changed (1)

tgwebservices/runtime.py

         self.data = value
         
     def base64(self):
-        return base64.encodestring(self.data)
+        if self.data is not None:
+            return base64.encodestring(self.data)
 
     def __json__(self):
         return self.base64()