diff --git a/aim/cli/runs/commands.py b/aim/cli/runs/commands.py index 104c1e27d6..e91e93f291 100644 --- a/aim/cli/runs/commands.py +++ b/aim/cli/runs/commands.py @@ -25,9 +25,10 @@ def runs(ctx, repo): def list_runs(ctx): """List Runs available in Repo.""" repo_path = ctx.obj['repo'] - if not Repo.exists(repo_path): - click.echo(f'\'{repo_path}\' is not a valid aim repo.') - exit(1) + if not Repo.is_remote_path(repo_path): + if not Repo.exists(repo_path): + click.echo(f'\'{repo_path}\' is not a valid aim repo.') + exit(1) repo = Repo.from_path(repo_path) run_hashes = repo.list_all_runs() diff --git a/aim/ext/transport/handlers.py b/aim/ext/transport/handlers.py index cd14e1ac3d..aa4a94175c 100644 --- a/aim/ext/transport/handlers.py +++ b/aim/ext/transport/handlers.py @@ -67,7 +67,8 @@ def get_structured_run(hash_, read_only, created_at, **kwargs): repo = Repo.from_path(repo_path) else: repo = Repo.default_repo() - created_at = datetime.fromtimestamp(created_at, tz=pytz.utc).replace(tzinfo=None) + if created_at is not None: + created_at = datetime.fromtimestamp(created_at, tz=pytz.utc).replace(tzinfo=None) return ResourceRef(repo.request_props(hash_, read_only, created_at)) diff --git a/aim/storage/structured/proxy.py b/aim/storage/structured/proxy.py index a2f7ee019a..6d6b97f497 100644 --- a/aim/storage/structured/proxy.py +++ b/aim/storage/structured/proxy.py @@ -23,7 +23,7 @@ def __init__(self, client: 'Client', kwargs = { 'hash_': hash_, 'read_only': read_only, - 'created_at': created_at.timestamp() + 'created_at': created_at.timestamp() if created_at is not None else created_at } self.init_args = pack_args(encode_tree(kwargs))