bugfix: agrego try except al setlocale para capturar errores en pipeline
This commit is contained in:
@@ -12,10 +12,14 @@ from lib.io import *
|
|||||||
|
|
||||||
|
|
||||||
REPOSITORY_TOKEN_PATH=".repository-token"
|
REPOSITORY_TOKEN_PATH=".repository-token"
|
||||||
|
LOCALE = 'es_AR.UTF-8'
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
locale.setlocale(locale.LC_ALL, 'es_AR.UTF-8')
|
try:
|
||||||
|
locale.setlocale(locale.LC_ALL, LOCALE)
|
||||||
|
except locale.Error as e:
|
||||||
|
print_warning(f"No se pudo configurar el locale '{LOCALE}': {e}")
|
||||||
|
|
||||||
args = sys.argv
|
args = sys.argv
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user