Mercurial > repos > melissacline > xena_import
diff xena_import.py @ 16:7f03b062f330 default tip
Cleaned up the user interface a bit
author | melissacline |
---|---|
date | Tue, 23 Sep 2014 21:18:54 -0700 |
parents | a2a7096897a8 |
children |
line wrap: on
line diff
--- a/xena_import.py Mon Sep 15 12:05:28 2014 -0700 +++ b/xena_import.py Tue Sep 23 21:18:54 2014 -0700 @@ -43,7 +43,12 @@ fp.close() # Finally, copy the genomic data into the Xena directory - shutil.copy(args.genomicDataPathname, xenaFileDir) + try: + shutil.copy(args.genomicDataPathname, xenaFileDir) + except: + print "Unexpected error", sys.exc_info()[0] + else: + print "Data copied successfully to Xena" if __name__ == "__main__": main()