diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-03 00:22:10 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-03 00:22:10 +0100 |
commit | 4722e1f6a0c5978617de52e1ec4611e5d6067142 (patch) | |
tree | b3da5db3b96f107bd1f08098def74270405fcce2 /module/plugins/container/LinkList.py | |
parent | [Checksum] Retrieve hashsum from self.info (diff) | |
download | pyload-4722e1f6a0c5978617de52e1ec4611e5d6067142.tar.xz |
Use method pop to remove item from dict
Diffstat (limited to 'module/plugins/container/LinkList.py')
-rw-r--r-- | module/plugins/container/LinkList.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/container/LinkList.py b/module/plugins/container/LinkList.py index cff1b9915..86c5f88e7 100644 --- a/module/plugins/container/LinkList.py +++ b/module/plugins/container/LinkList.py @@ -63,7 +63,7 @@ class LinkList(Container): delete.append(key) for key in delete: - del packages[key] + packages.pop(key, None) if self.getConfig("clear"): try: |