Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 0a4d28c

Browse files
author
Dimitar Tasev
committed
Specially handle None and convert it to string
1 parent 9a50553 commit 0a4d28c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

queue_processors/queue_processor/instrument_variable_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ def variable_was_updated(variable, new_value: Any, new_type: str, new_help_text:
249249
changed = False
250250
# compare the new value, which was converted earlier, to the original value in its real type
251251
real_type_value = VariableUtils.convert_variable_to_type(variable.value, variable.type)
252+
# special case for a None value - make it a None string
253+
if new_value is None:
254+
new_value = "None"
255+
252256
if new_value != real_type_value:
253257
variable.value = new_value
254258
changed = True

0 commit comments

Comments
 (0)