Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7f8543a2
Commit
7f8543a2
authored
May 21, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up logging in import_export.py
parent
9dc48c00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cms/djangoapps/contentstore/views/import_export.py
+3
-3
No files found.
cms/djangoapps/contentstore/views/import_export.py
View file @
7f8543a2
...
...
@@ -329,7 +329,7 @@ def export_handler(request, course_key_string):
with
tarfile
.
open
(
name
=
export_file
.
name
,
mode
=
'w:gz'
)
as
tar_file
:
tar_file
.
add
(
root_dir
/
name
,
arcname
=
name
)
except
SerializationError
as
exc
:
log
ging
.
exception
(
'There was an error exporting course {0}. {1}'
.
format
(
course_module
.
location
,
unicode
(
exc
))
)
log
.
exception
(
'There was an error exporting course
%
s'
,
course_module
.
id
)
unit
=
None
failed_item
=
None
parent
=
None
...
...
@@ -355,8 +355,8 @@ def export_handler(request, course_key_string):
'course_home_url'
:
reverse_course_url
(
"course_handler"
,
course_key
),
'export_url'
:
export_url
})
except
Exception
,
exc
:
log
ging
.
exception
(
'There was an error exporting course {0}. {1}'
.
format
(
course_module
.
location
,
unicode
(
exc
))
)
except
Exception
as
exc
:
log
.
exception
(
'There was an error exporting course
%
s'
,
course_module
.
id
)
return
render_to_response
(
'export.html'
,
{
'context_course'
:
course_module
,
'in_err'
:
True
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment