diff --git a/VERSION b/VERSION index 415b19f..42f7d23 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0 \ No newline at end of file +2.1 \ No newline at end of file diff --git a/modules/util.py b/modules/util.py index 9f561d6..e12a800 100644 --- a/modules/util.py +++ b/modules/util.py @@ -31,7 +31,7 @@ def print_stacktrace(): def my_except_hook(exctype, value, tb): for line in traceback.format_exception(etype=exctype, value=value, tb=tb): - print_multiline(line, critical=True) + print_multiline(line, 'CRITICAL') def centered(text, sep=" "): diff --git a/qbit_manage.py b/qbit_manage.py index c7a89ef..fd86798 100644 --- a/qbit_manage.py +++ b/qbit_manage.py @@ -326,6 +326,11 @@ def set_cross_seed(): total = 0 #Track # of torrents tagged that are not cross-seeded t_tagged = 0 + + if not os.path.exists(os.path.join(cfg['directory']['cross_seed'], '')): + logger.error(f"Path Error: cross_seed directory not found at {os.path.abspath(os.path.join(cfg['directory']['cross_seed'], ''))}") + return + # Only get torrent files cs_files = [f for f in os.listdir(os.path.join(cfg['directory']['cross_seed'], '')) if f.endswith('torrent')] dir_cs = os.path.join(cfg['directory']['cross_seed'], '')