Fixed a bug

master
Per A Brodtkorb 7 years ago
parent 1f3f430d4f
commit bccec40359

@ -1522,7 +1522,7 @@ class Spreading(object):
methods = {'n': None, 'm': 'mitsuyasu', 'd': 'donelan', 'b':'banner', methods = {'n': None, 'm': 'mitsuyasu', 'd': 'donelan', 'b':'banner',
0: None, 1: 'mitsuyasu', 2: 'donelan', 3:'banner', 0: None, 1: 'mitsuyasu', 2: 'donelan', 3:'banner',
None: None} None: None}
m = method if not isinstance(self.method, str) else method[0].lower() m = method if not isinstance(method, str) else method[0].lower()
try: try:
self._method = methods[m] self._method = methods[m]
except KeyError: except KeyError:

Loading…
Cancel
Save