Formatting
This commit is contained in:
parent
5ff31e7cb4
commit
38838b94a2
1 changed files with 4 additions and 3 deletions
|
@ -81,7 +81,7 @@ def packPeers(peers):
|
||||||
packed_peers["onion"].append(peer.packMyAddress())
|
packed_peers["onion"].append(peer.packMyAddress())
|
||||||
else:
|
else:
|
||||||
packed_peers["ip4"].append(peer.packMyAddress())
|
packed_peers["ip4"].append(peer.packMyAddress())
|
||||||
except Exception, err:
|
except Exception:
|
||||||
logging.error("Error packing peer address: %s" % peer)
|
logging.error("Error packing peer address: %s" % peer)
|
||||||
return packed_peers
|
return packed_peers
|
||||||
|
|
||||||
|
@ -116,6 +116,7 @@ def getDirname(path):
|
||||||
else:
|
else:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
# Get dir from file
|
# Get dir from file
|
||||||
# Return: data/site/content.json -> content.json
|
# Return: data/site/content.json -> content.json
|
||||||
def getFilename(path):
|
def getFilename(path):
|
||||||
|
|
Loading…
Reference in a new issue