Commits

Anonymous committed 6a7ef1f

Fixed #15628 -- Made the admin error email more useful when there isn't a request associated with the message. Thanks to hynek for the report and patch.

Comments (0)

Files changed (1)

             )
             request_repr = repr(request)
         except:
-            subject = 'Error: Unknown URL'
+            subject = '%s: %s' % (
+                record.levelname,
+                record.msg
+            )
+
             request = None
             request_repr = "Request repr() unavailable"