Ajustes para unificar dependencia de current_url.
This commit is contained in:
@@ -148,6 +148,8 @@ try:
|
||||
# Retornar valores (Rocketbot compatible)
|
||||
try:
|
||||
SetVar('current_url', doc_url)
|
||||
SetVar('gdoc_id', copied_doc['id'])
|
||||
SetVar('gdoc_url_final', doc_url)
|
||||
SetVar('doc_copy_created', True)
|
||||
except NameError:
|
||||
pass # Si no está en Rocketbot, solo imprime
|
||||
@@ -163,4 +165,4 @@ except Exception as e:
|
||||
SetVar('doc_copy_created', False)
|
||||
except NameError:
|
||||
pass
|
||||
print(f"Error detectado: {str(e)}")
|
||||
print(f"Error detectado: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user