Skip to content

Commit 33cbc23

Browse files
committed
a more modern default
1 parent 845262c commit 33cbc23

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library/multidb/allocate_torrents.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def allocate_torrents():
9898

9999
total_available = sum(d["free"] - args.min_free_space for d in disks)
100100
print(f"{len(disks)} disks matched. {strings.file_size(total_available)} available space")
101+
if not disks:
102+
raise SystemExit(28)
101103

102104
args.filter_sql.append("and size < :download_size")
103105
args.filter_bindings["download_size"] = disks[-1]["free"] - args.min_free_space

library/utils/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def random_string() -> str:
7474
)
7575
REGEX_V_REDD_IT = re.compile("https?://v.redd.it/(?:[^/?#&]+)")
7676
APPLICATION_START = now()
77-
TERMINAL_SIZE = shutil.get_terminal_size(fallback=(80, 60))
77+
TERMINAL_SIZE = shutil.get_terminal_size(fallback=(150, 50))
7878
MOBILE_TERMINAL = TERMINAL_SIZE.columns < 80
7979
TABULATE_STYLE = "simple"
8080
DEFAULT_DIFFLIB_RATIO = 0.73

0 commit comments

Comments
 (0)