Skip to content

Commit 126f353

Browse files
ReimarBauermatrss
andauthored
Update mslib/mscolab/models.py
Co-authored-by: Matthias Riße <[email protected]>
1 parent 0b8e5de commit 126f353

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mslib/mscolab/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,7 @@ def __init__(self, op_id, u_id, commit_hash, version_name=None, comment=None):
216216
self.op_id = int(op_id)
217217
self.u_id = int(u_id)
218218
self.commit_hash = str(commit_hash)
219-
self.version_name = version_name
220-
self.comment = comment
219+
if version_name is not None:
220+
self.version_name = str(version_name)
221+
if comment is not None:
222+
self.comment = str(comment)

0 commit comments

Comments
 (0)