Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
04630cb9
Commit
04630cb9
authored
May 14, 2006
by
zorglub
Browse files
Be more resilient
parent
c7b70c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/mangle/mangle.py
View file @
04630cb9
...
...
@@ -44,8 +44,11 @@ def process_file_once( file, header_size ):
os
.
remove
(
log_file
)
else
:
l
.
info
(
"Potential crash detected : %i, saving results"
%
suffix
)
shutil
.
move
(
new_file
,
conf
[
"crashdir"
]
)
shutil
.
move
(
log_file
,
conf
[
"crashdir"
]
)
try
:
shutil
.
move
(
new_file
,
conf
[
"crashdir"
]
)
shutil
.
move
(
log_file
,
conf
[
"crashdir"
]
)
except
:
l
.
error
(
"Unable to move file"
)
def
process_file
(
file
,
source
,
header_size
):
l
.
info
(
"Starting work on "
+
file
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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