Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aflitos, Saulo Alves
ibrowser
Commits
a5ed51aa
Commit
a5ed51aa
authored
Jun 08, 2015
by
Aflitos, Saulo Alves
Browse files
fail gracefully if customorder file is missing
parent
77eb7755
Changes
1
Hide whitespace changes
Inline
Side-by-side
vcfmerger/vcf_walk.py
View file @
a5ed51aa
...
...
@@ -1016,7 +1016,10 @@ class walker(object):
if
len
(
custom_orders_files
)
>
0
:
for
fn
in
custom_orders_files
:
print
"READING CUSTOM ORDER"
,
fn
co_chrom
,
co_name
,
co_data
=
self
.
read_custom_order
(
fn
,
spps
)
try
:
co_chrom
,
co_name
,
co_data
=
self
.
read_custom_order
(
fn
,
spps
)
except
:
continue
if
co_chrom
is
None
:
continue
...
...
@@ -1054,11 +1057,13 @@ class walker(object):
if
not
os
.
path
.
exists
(
fn
):
print
"input custom order file %s does not exists"
%
fn
sys
.
exit
(
1
)
raise
Exception
(
'fileMissing'
,
fn
)
#sys.exit(1)
if
not
os
.
path
.
isfile
(
fn
):
print
"input custom order file %s is not a file"
%
fn
sys
.
exit
(
1
)
raise
Exception
(
'fileFolder'
,
fn
)
#sys.exit(1)
#print spps
...
...
Write
Preview
Supports
Markdown
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