File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,16 @@ def _remove_none_fields(self, data):
57
57
58
58
def _send_revision (self , client , revision ):
59
59
revision = self ._remove_none_fields (revision )
60
- self .log .debug (f"DEBUG: sending revision: { revision } " )
61
- if kcidb .io .SCHEMA .is_valid (revision ):
62
- return client .submit (revision )
63
- self .log .error ("Aborting, invalid data" )
64
- try :
65
- kcidb .io .SCHEMA .validate (revision )
66
- except Exception as exc :
67
- self .log .error (f"Validation error: { str (exc )} " )
60
+ if any (value for key , value in revision .items () if key != 'version' ):
61
+ self .log .debug (f"DEBUG: sending revision: { revision } " )
62
+ if kcidb .io .SCHEMA .is_valid (revision ):
63
+ client .submit (revision )
64
+ else :
65
+ self .log .error ("Aborting, invalid data" )
66
+ try :
67
+ kcidb .io .SCHEMA .validate (revision )
68
+ except Exception as exc :
69
+ self .log .error (f"Validation error: { str (exc )} " )
68
70
69
71
@staticmethod
70
72
def _set_timezone (created_timestamp ):
You can’t perform that action at this time.
0 commit comments