diff options
author | Aaron LI <aly@aaronly.me> | 2017-08-22 20:45:42 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-08-22 20:45:42 +0800 |
commit | 72c2360081324ded60ccad64cefe67c34d174105 (patch) | |
tree | 9695907367b6046a9a54ec377a5a7a25c89733e2 /astro/oskar | |
parent | 291650f069f05e35e1e8114a61ca29c03f0eaa61 (diff) | |
download | atoolbox-72c2360081324ded60ccad64cefe67c34d174105.tar.bz2 |
taper_sky.py: Fix argument --outfile-taper
Diffstat (limited to 'astro/oskar')
-rwxr-xr-x | astro/oskar/taper_sky.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astro/oskar/taper_sky.py b/astro/oskar/taper_sky.py index 04a9177..282fe66 100755 --- a/astro/oskar/taper_sky.py +++ b/astro/oskar/taper_sky.py @@ -138,7 +138,7 @@ def main(): os.remove(args.outfile) else: raise OSError("Output file already exists: %s" % args.outfile) - if os.path.exists(args.outfile_taper): + if args.outfile_taper and os.path.exists(args.outfile_taper): if args.clobber: logger.warning("Removed existing file: %s" % args.outfile_taper) os.remove(args.outfile_taper) |