mirror of
https://github.com/rendercv/rendercv.git
synced 2025-12-23 21:47:55 -05:00
cli: update set_or_update_a_value
This commit is contained in:
@@ -63,7 +63,8 @@ def set_or_update_a_value(
|
||||
if len(keys) == 1:
|
||||
# Set the value:
|
||||
if value.startswith("{") and value.endswith("}"):
|
||||
raise ValueError("Dictionary assignment is not allowed!")
|
||||
# Allow users to assign dictionaries:
|
||||
value = eval(value)
|
||||
elif value.startswith("[") and value.endswith("]"):
|
||||
# Allow users to assign lists:
|
||||
value = eval(value)
|
||||
|
||||
Reference in New Issue
Block a user