fix !!fuse
This commit is contained in:
parent
a9089bf342
commit
c991a9961b
|
@ -7,6 +7,7 @@ import sys, os
|
||||||
import time
|
import time
|
||||||
import subprocess
|
import subprocess
|
||||||
import tracery
|
import tracery
|
||||||
|
import traceback
|
||||||
from tracery.modifiers import base_english
|
from tracery.modifiers import base_english
|
||||||
import json
|
import json
|
||||||
import random
|
import random
|
||||||
|
@ -66,8 +67,8 @@ def listify(col):
|
||||||
|
|
||||||
|
|
||||||
def shuffle(col):
|
def shuffle(col):
|
||||||
a = random.choice(col.keys())
|
a = random.choice(list(col))
|
||||||
b = random.choice(col.keys())
|
b = random.choice(list(col))
|
||||||
if "origin" in [a, b]:
|
if "origin" in [a, b]:
|
||||||
print("origin discard")
|
print("origin discard")
|
||||||
return col
|
return col
|
||||||
|
@ -179,3 +180,4 @@ if __name__ == "__main__":
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("ERROR" + str(m))
|
print("ERROR" + str(m))
|
||||||
print(e)
|
print(e)
|
||||||
|
traceback.print_exc()
|
||||||
|
|
Loading…
Reference in New Issue