added qbittorrent-python

This commit is contained in:
jkaberg committed 2014-03-15 17:05:26 +01:00
1 parent f5aae23111
commit 42e3c95f87
6 files changed
+180

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
def try_convert(value, to_type, default=None):
try:
return to_type(value)
except ValueError:
return default
except TypeError:
return default