Show More
@@ -131,7 +131,7 b' def send_exc_email(request, exc_id, exc_' | |||
|
131 | 131 | |
|
132 | 132 | # NOTE(marcink): needed for email template rendering |
|
133 | 133 | user_id = None |
|
134 | if request: | |
|
134 | if hasattr(request, 'user'): | |
|
135 | 135 | user_id = request.user.user_id |
|
136 | 136 | attach_context_attributes(TemplateArgs(), request, user_id=user_id, is_api=True) |
|
137 | 137 |
General Comments 0
You need to be logged in to leave comments.
Login now