Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access to other servers than Tranquility and Serenity fails #34

Open
IngHarm opened this issue Apr 8, 2015 · 1 comment
Open

access to other servers than Tranquility and Serenity fails #34

IngHarm opened this issue Apr 8, 2015 · 1 comment

Comments

@IngHarm
Copy link

IngHarm commented Apr 8, 2015

if you try to access other installations with
eve = blue.EVE(EVEPATH,SERVER)
where SERVER = "Singularity" or SERVER is set to an other IP or Name than Tranquility or Serenity, you will get an
UnboundLocalError: local variable 'servername' referenced before assignment

This error occurs because the servername in the _getserver(server) in blue.py is not set.
I fixed this in the following code for Singularity:

def _getserver(server):
    if server.replace(".","").isdigit():
        serverip = server or None
    else:
        serverip = _serveraliases.get(server.lower(), None)

    if serverip is None:
        raise ValueError("Invalid server name '%s'. Valid names are '%s' or an IP address." %\
            (server, "', '".join((x.capitalize() for x in _serveraliases))))

    if serverip == "87.237.38.200":
        servername = "Tranquility"
    elif serverip == "211.144.214.68":
        servername = "211.144.214.68"
# Fix for Singularity
    elif serverip == "87.237.38.50":
        servername = "Singularity"
# Fix for all others
    else: 
       servername = serverip

    return servername, serverip
@DarkFenX
Copy link

DarkFenX commented Apr 8, 2015

According to my experience (dumps from duality/chaos) it doesn't really matter what are you passing to reverence. For chaos, for which you can't actually have cache (because you can't log into there), just specify path to tq/sisi cache and pass according server name to reverence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants