Move catch-all try/except from snakemake() to main()
Elmar Pruesse
Branch: epruesse/snakemake:exception_handling
Branch: snakemake/snakemake:master
Declined
Declined pull request
I have decided to rather fix this within a larger API rewrite that will come sooner or later. Right now, the API is of limited use anyway since snakemake is not thread safe.
Closed by: Johannes Köster·2019-10-04
While catching everything and presenting a user friendly message is useful at CLI level (i.e.
snakemake.main
), API consumers callingsnakemake.snakemake()
are likely to want to deal with exceptions themselves.