File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def random_string() -> str:
7474)
7575REGEX_V_REDD_IT = re .compile ("https?://v.redd.it/(?:[^/?#&]+)" )
7676APPLICATION_START = now ()
77- TERMINAL_SIZE = shutil .get_terminal_size (fallback = (80 , 60 ))
77+ TERMINAL_SIZE = shutil .get_terminal_size (fallback = (150 , 50 ))
7878MOBILE_TERMINAL = TERMINAL_SIZE .columns < 80
7979TABULATE_STYLE = "simple"
8080DEFAULT_DIFFLIB_RATIO = 0.73
You can’t perform that action at this time.
0 commit comments