summaryrefslogtreecommitdiffstats
path: root/pyload/FileManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-25 22:57:33 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-25 22:57:33 +0100
commit10bd0793f4dc0191d97da390a43552a272c8290e (patch)
tree87b62f81e62b630a89e80beabdec5dd54a359338 /pyload/FileManager.py
parentrender addon menu for packages (diff)
downloadpyload-10bd0793f4dc0191d97da390a43552a272c8290e.tar.xz
invoke addons via context menu
Diffstat (limited to 'pyload/FileManager.py')
-rw-r--r--pyload/FileManager.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/FileManager.py b/pyload/FileManager.py
index 614418f99..61c164316 100644
--- a/pyload/FileManager.py
+++ b/pyload/FileManager.py
@@ -21,7 +21,7 @@ from ReadWriteLock import ReadWriteLock
from pyload.utils import lock, read_lock
-from Api import PackageStatus, DownloadStatus as DS, TreeCollection, PackageDoesNotExists
+from Api import PackageStatus, DownloadStatus as DS, TreeCollection, PackageDoesNotExist
from datatypes.PyFile import PyFile
from datatypes.PyPackage import PyPackage, RootPackage
@@ -529,8 +529,8 @@ class FileManager:
p = self.getPackageInfo(pid)
dest = self.getPackageInfo(root)
- if not p: raise PackageDoesNotExists(pid)
- if not dest: raise PackageDoesNotExists(root)
+ if not p: raise PackageDoesNotExist(pid)
+ if not dest: raise PackageDoesNotExist(root)
# cantor won't be happy if we put the package in itself
if pid == root or p.root == root: return False
@@ -552,7 +552,7 @@ class FileManager:
if not f or f.package == pid:
return False
if not self.getPackageInfo(pid):
- raise PackageDoesNotExists(pid)
+ raise PackageDoesNotExist(pid)
# TODO move real files