From 41c26097b627cfaa15dcaa473d4300e5d0ec268d Mon Sep 17 00:00:00 2001
From: RaNaN <Mast3rRaNaN@hotmail.de>
Date: Mon, 6 Sep 2010 19:54:46 +0200
Subject: final fixes

---
 module/plugins/accounts/DepositfilesCom.py | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

(limited to 'module/plugins/accounts')

diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py
index 809381217..1410e6a37 100644
--- a/module/plugins/accounts/DepositfilesCom.py
+++ b/module/plugins/accounts/DepositfilesCom.py
@@ -30,18 +30,21 @@ class DepositfilesCom(Account):
     __author_mail__ = ("mkaay@mkaay.de")
     
     def getAccountInfo(self, user):
-        req = self.core.requestFactory.getRequest(self.__name__, user)
-        
-        src = req.load("http://depositfiles.com/de/gold/")
-        validuntil = re.search("noch den Gold-Zugriff: <b>(.*?)</b></div>", src).group(1)
-        
-        validuntil = int(mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S")))
-        
-        out = Account.getAccountInfo(self, user)
-        
-        tmp = {"validuntil":validuntil, "trafficleft":-1}
-        out.update(tmp)
-        return out
+        try:
+            req = self.core.requestFactory.getRequest(self.__name__, user)
+
+            src = req.load("http://depositfiles.com/de/gold/")
+            validuntil = re.search("noch den Gold-Zugriff: <b>(.*?)</b></div>", src).group(1)
+
+            validuntil = int(mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S")))
+
+            out = Account.getAccountInfo(self, user)
+
+            tmp = {"validuntil":validuntil, "trafficleft":-1}
+            out.update(tmp)
+            return out
+        except:
+            return Account.getAccountInfo(self, user)
     
     def login(self, user, data):
         req = self.core.requestFactory.getRequest(self.__name__, user)
-- 
cgit v1.2.3