Ticket #12849: no_str.diff
File no_str.diff, 997 bytes (added by , 15 years ago) |
---|
-
django/core/management/base.py
214 214 except ImportError, e: 215 215 # If settings should be available, but aren't, 216 216 # raise the error and quit. 217 sys.stderr.write(self.style.ERROR( str('Error: %s\n' % e)))217 sys.stderr.write(self.style.ERROR('Error: %s\n' % e)) 218 218 sys.exit(1) 219 219 try: 220 220 if self.requires_model_validation: … … 230 230 if self.output_transaction: 231 231 print self.style.SQL_KEYWORD("COMMIT;") 232 232 except CommandError, e: 233 sys.stderr.write(self.style.ERROR( str('Error: %s\n' % e)))233 sys.stderr.write(self.style.ERROR('Error: %s\n' % e)) 234 234 sys.exit(1) 235 235 236 236 def validate(self, app=None, display_num_errors=False):