diff --git a/ucetnictvi_tm.py b/ucetnictvi_tm.py index 0f88acb..295e6ed 100644 --- a/ucetnictvi_tm.py +++ b/ucetnictvi_tm.py @@ -206,7 +206,7 @@ with open('output_TMCZ_'+ext_date_from_filaname, 'w') as f: f.close() -sys.exit() + with open('output_TMCZ_'+ext_date_from_filaname, "rb") as f: webhook.add_file(file=f.read(), filename='output_TMCZ_'+ext_date_from_filaname)