Commit 55e772bd authored by Vladimir Mencl's avatar Vladimir Mencl

parse_institution_xml: always print ERROR messages

Change the ERROR write to an explicit reference to self.stderr.write - to
always report an error message (and use stderr for doing so).
parent e958c34c
......@@ -246,6 +246,6 @@ class Command(BaseCommand):
)
t.save()
except Exception as e:
write('ERROR: %s\n' % e)
self.stderr.write('ERROR: %s\n' % e)
continue
return True
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