Remove dead migration code
This commit is contained in:
parent
5c0a2223a0
commit
66d1ed26f7
1 changed files with 0 additions and 16 deletions
|
@ -387,22 +387,6 @@ def relay_run(obj: Application):
|
||||||
'Relay is not set up. Please edit your relay config or run "activityrelay setup".'
|
'Relay is not set up. Please edit your relay config or run "activityrelay setup".'
|
||||||
)
|
)
|
||||||
|
|
||||||
vers_split = platform.python_version().split(".")
|
|
||||||
pip_command = "pip3 uninstall pycrypto && pip3 install pycryptodome"
|
|
||||||
|
|
||||||
if Crypto.__version__ == "2.6.1":
|
|
||||||
if int(vers_split[1]) > 7:
|
|
||||||
click.echo(
|
|
||||||
"Error: PyCrypto is broken on Python 3.8+. Please replace it with pycryptodome before running again. Exiting..."
|
|
||||||
)
|
|
||||||
return click.echo(pip_command)
|
|
||||||
|
|
||||||
else:
|
|
||||||
click.echo(
|
|
||||||
"Warning: PyCrypto is old and should be replaced with pycryptodome"
|
|
||||||
)
|
|
||||||
return click.echo(pip_command)
|
|
||||||
|
|
||||||
if not misc.check_open_port(obj.config.listen, obj.config.port):
|
if not misc.check_open_port(obj.config.listen, obj.config.port):
|
||||||
return click.echo(
|
return click.echo(
|
||||||
f"Error: A server is already running on port {obj.config.port}"
|
f"Error: A server is already running on port {obj.config.port}"
|
||||||
|
|
Loading…
Reference in a new issue