Changed tool initialization error handling (from stack traceback to simple error message.)

This commit is contained in:
Guruprasad Anada
2007-10-17 14:42:35 +00:00
parent 5437b74d30
commit 42c130c85b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def main():
inp_file, out_file, column, features = args
column = int(column)
except:
doc_optparse.exception()
doc_optparse.exit()
if features == None:
print "Column %d has no features to display. Please select another column." %(column+1)
+1 -1
View File
@@ -28,7 +28,7 @@ def main():
if strand_col_1 <= 0:
strand = "+" #if strand is not defined, default it to +
except:
doc_optparse.exception()
doc_optparse.exit()
try:
fi = open(inp_file,'r')