aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-08-22 20:45:42 +0800
committerAaron LI <aly@aaronly.me>2017-08-22 20:45:42 +0800
commit72c2360081324ded60ccad64cefe67c34d174105 (patch)
tree9695907367b6046a9a54ec377a5a7a25c89733e2 /astro
parent291650f069f05e35e1e8114a61ca29c03f0eaa61 (diff)
downloadatoolbox-72c2360081324ded60ccad64cefe67c34d174105.tar.bz2
taper_sky.py: Fix argument --outfile-taper
Diffstat (limited to 'astro')
-rwxr-xr-xastro/oskar/taper_sky.py2
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)