Save recent projects by their ID instead of path (#2217)
This commit is contained in:
@@ -110,7 +110,7 @@ def checkBool(value: Any, default: bool) -> bool:
|
||||
return default
|
||||
|
||||
|
||||
def checkUuid(value: Any, default: str) -> str:
|
||||
def checkUuid(value: Any, default: str = "") -> str:
|
||||
"""Try to process a value as an UUID, or return a default."""
|
||||
try:
|
||||
return str(uuid.UUID(value))
|
||||
|
||||
Reference in New Issue
Block a user