Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit d85fd857 authored by Janez K's avatar Janez K
Browse files

utf-8 encoding pri pisanju fajla v export-package command

parent 656f6d60
...@@ -32,7 +32,7 @@ class Command(BaseCommand): ...@@ -32,7 +32,7 @@ class Command(BaseCommand):
result = self.export_package_string(self.stdout.write, args[1:], options['newuid'], options['all']) result = self.export_package_string(self.stdout.write, args[1:], options['newuid'], options['all'])
try: try:
f.write(result) f.write(result.encode('utf-8'))
except: except:
raise CommandError('There was a problem with writing to the given output file') raise CommandError('There was a problem with writing to the given output file')
......
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