summaryrefslogtreecommitdiffstats
path: root/pyload/database/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
commit004a80bfaad38f9400e8aebcb8f980353a232295 (patch)
tree1e786d2d14a3040767aac237982544b74a9567cb /pyload/database/FileDatabase.py
parentFix previous merge (diff)
downloadpyload-004a80bfaad38f9400e8aebcb8f980353a232295.tar.xz
PEP-8, Python Zen, refactor and reduce code (thx FedeG)
Diffstat (limited to 'pyload/database/FileDatabase.py')
-rw-r--r--pyload/database/FileDatabase.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/database/FileDatabase.py b/pyload/database/FileDatabase.py
index 5bd1e5a5f..39e13fe29 100644
--- a/pyload/database/FileDatabase.py
+++ b/pyload/database/FileDatabase.py
@@ -28,11 +28,11 @@ from pyload.database import style, DatabaseBackend
try:
from pysqlite2 import dbapi2 as sqlite3
-except:
+except Exception:
import sqlite3
-class FileHandler:
+class FileHandler(object):
"""Handles all request made to obtain information,
modify status or other request for links or packages"""
@@ -572,7 +572,7 @@ class FileHandler:
""" restart all failed links """
self.db.restartFailed()
-class FileMethods:
+class FileMethods(object):
@style.queue
def filecount(self, queue):
"""returns number of files in queue"""