mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2024-12-29 21:07:39 +06:00
Undefined name: Error() --> ValueError()
This commit is contained in:
parent
7edebeef0d
commit
a10d9a617f
@ -11,7 +11,7 @@ def load_pycrypto():
|
||||
class DES(object):
|
||||
def __init__(self, key):
|
||||
if len(key) != 8 :
|
||||
raise Error('DES improper key used')
|
||||
raise ValueError('DES improper key used')
|
||||
self.key = key
|
||||
self._des = _DES.new(key,_DES.MODE_ECB)
|
||||
def desdecrypt(self, data):
|
||||
|
Loading…
Reference in New Issue
Block a user