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
Holland Computing Center
chipathlon
Commits
12fbb5bc
Commit
12fbb5bc
authored
Jul 07, 2017
by
Adam Caprez
Browse files
Add non-zero exit code.
parent
4e3a45df
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/chip-job-save-result
View file @
12fbb5bc
...
...
@@ -3,6 +3,7 @@ import chipathlon.db
import
argparse
import
yaml
import
os
import
sys
parser
=
argparse
.
ArgumentParser
(
description
=
"Insert a bed file into the database."
)
parser
.
add_argument
(
"-u"
,
"--username"
,
dest
=
"username"
,
help
=
"Database username (if required)."
)
...
...
@@ -30,4 +31,5 @@ if os.path.isfile(args.file) and os.path.isfile(args.meta) and os.path.getsize(a
print
msg
else
:
print
"Either input file %s or meta file %s does not exist."
%
(
args
.
file
,
args
.
meta
)
print
"Either input file '%s' or meta file '%s' does not exist, or has zero size."
%
(
args
.
file
,
args
.
meta
)
sys
.
exit
(
1
)
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