Remove dead migration code

This commit is contained in:
Reid 'arrdem' McKenzie 2022-11-21 01:51:42 -07:00
parent b2b7363797
commit 7b7f20c4c3

View file

@ -387,22 +387,6 @@ def relay_run(obj: Application):
'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):
return click.echo(
f"Error: A server is already running on port {obj.config.port}"