mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Merge branch 'hotfix/0.14.2'
This commit is contained in:
commit
51df563c50
2 changed files with 11 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
|||
### 0.14.1 (2018-02-03 22:40:00 UTC)
|
||||
### 0.14.2 (2018-02-07 16:00:00 UTC)
|
||||
|
||||
Change add handling for where requesting disk freespace is denied permission on some Linux distros
|
||||
|
||||
|
||||
### 0.14.1 (2018-02-03 22:40:00 UTC)
|
||||
|
||||
Change terminology around the custom quality selection to improve clarity
|
||||
Change restrict changing custom download qualities to reasonable selections
|
||||
|
|
|
@ -1611,7 +1611,10 @@ def freespace(path=None):
|
|||
except(StandardError, Exception):
|
||||
pass
|
||||
elif sys.platform.startswith(('linux', 'darwin', 'sunos5')) or 'bsd' in sys.platform:
|
||||
storage = os.statvfs(path)
|
||||
result = storage.f_bavail * storage.f_frsize
|
||||
try:
|
||||
storage = os.statvfs(path) # perms errors can result
|
||||
result = storage.f_bavail * storage.f_frsize
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue