Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit bc0a6c8a authored by Matthieu Moy's avatar Matthieu Moy
Browse files

set-intro: get file in UTF-8

Without this, one gets a UnicodeEncodeError if the intro contains non-ascii.
parent 2e508282
Pipeline #277 passed with stage
in 56 seconds
......@@ -87,6 +87,6 @@ def cmd_get_intro(o):
intro = get_intro(o)
if o.output_file:
with file(o.output_file, 'w') as f:
f.write(intro)
f.write(intro.encode('utf-8'))
else:
print(intro)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment