We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55291a3 commit b909785Copy full SHA for b909785
skyhookUpDown.py
@@ -1,7 +1,7 @@
1
try:
2
- import ipfsApi
+ import ipfshttpclient
3
except:
4
- print("[!] Module ipfs-api not installed")
+ print("[!] Module ipfshttpclient not installed")
5
exit()
6
7
@@ -18,7 +18,11 @@
18
def getRandomString(length):
19
return("".join(random.choice(string.ascii_letters + string.digits) for i in range(length)))
20
21
-peer = ipfsApi.Client(skyhookConfig.host, skyhookConfig.port)
+try:
22
+ peer = ipfshttpclient.connect(skyhookConfig.host)
23
+except:
24
+ print("[!] Cannot connect to {}".format(skyhookConfig.host))
25
+ exit()
26
27
def uploadFile(fileName):
28
currentDir = os.getcwd()
0 commit comments