diff --git a/src/python/dxpy/scripts/dx_bed_to_spans.py b/src/python/dxpy/scripts/dx_bed_to_spans.py
index <HASH>..<HASH> 100755
--- a/src/python/dxpy/scripts/dx_bed_to_spans.py
+++ b/src/python/dxpy/scripts/dx_bed_to_spans.py
@@ -595,7 +595,7 @@ def import_BED(**args):
     return job_outputs
 
 def main(**args):
-    return import_BED(**args)
+    import_BED(**args)
 
 if __name__ == '__main__':
     import_BED()
Fix exit code of dx-bed-to-spans.