diff --git a/ogclient/interfaceAdm/ModificarImagenGit b/ogclient/interfaceAdm/ModificarImagenGit index c9ac305..9058fb8 100755 --- a/ogclient/interfaceAdm/ModificarImagenGit +++ b/ogclient/interfaceAdm/ModificarImagenGit @@ -78,9 +78,10 @@ def commit_image(disk_num, partition_num, repository, branch, options, msg): sys.exit(SystemLib.ogRaiseError([], ogGlobals.OG_ERR_FORMAT, f"Failed to translate disk {disk_num} partition {partition_num} to a device")) force_push = False - opts = options.split(",") - if "force_push" in opts: - force_push = True + if options: + opts = options.split(",") + if "force_push" in opts: + force_push = True try: if branch: