Commits

Johannes Köster  committed 0df581c

Fix success logic.

  • Participants
  • Parent commits 41ec36f

Comments (0)

Files changed (1)

File snakemake/__init__.py

 import re
 import sys
 import inspect
+from functools import partial
+
 
 from snakemake.workflow import Workflow
 from snakemake.exceptions import print_exception
             # ignore: if it does not work we can still work without it
             pass
 
-    success = False
+    success = True
     try:
         workflow.include(snakefile, workdir=workdir,
             overwrite_first_rule=True, print_compilation=print_compilation)
 
     except (Exception, BaseException) as ex:
         print_exception(ex, workflow.linemaps)
+        success = False
     if workdir:
         os.chdir(olddir)
     if workflow.persistence: