diff --git a/accloudtant/aws/instance.py b/accloudtant/aws/instance.py
index 4e19b2d..2073f28 100644
--- a/accloudtant/aws/instance.py
+++ b/accloudtant/aws/instance.py
@@ -62,7 +62,7 @@ class Instance(object):
     @property
     def name(self):
         names = [tag for tag in self.tags if tag['Key'] == 'Name']
-        if names is None:
+        if len(names) == 0:
             return ''
         else:
             return names[0]['Value']

Fails with Python 3
My system have Python 3 installed by default (Archlinux). This is the output of `accloudtant report`:

```
Traceback (most recent call last):
  File "/usr/bin/accloudtant", line 22, in <module>
    cli()
  File "/usr/lib/python3.5/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.5/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.5/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.5/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.5/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/bin/accloudtant", line 19, in report
    click.echo(Reports())
  File "/usr/lib/python3.5/site-packages/click/utils.py", line 221, in echo
    message = text_type(message)
  File "/usr/lib/python3.5/site-packages/accloudtant/aws/reports.py", line 69, in __repr__
    instance.name,
  File "/usr/lib/python3.5/site-packages/accloudtant/aws/instance.py", line 68, in name
    return names[0]['Value']
IndexError: list index out of range
```

I can't verify that it works well on Python 2 so fell free to close this issue and open a new one if the problem is not caused by the Python version.
diff --git a/tests/aws/test_instance.py b/tests/aws/test_instance.py
index d90e2c5..a016f7b 100644
--- a/tests/aws/test_instance.py
+++ b/tests/aws/test_instance.py
@@ -73,6 +73,57 @@ def test_instance():
     assert(instance.best == 0.293)
 
 
+def test_unnamed_instance():
+    az = 'us-east-1b'
+    region = 'us-east-1'
+    instance_data = {
+        'id': 'i-1840273e',
+        'tags': [],
+        'instance_type': 'r2.8xlarge',
+        'placement': {
+            'AvailabilityZone': az,
+        },
+        'state': {
+            'Name': 'running',
+        },
+        'launch_time': datetime.datetime(
+                2015,
+                10,
+                22,
+                14,
+                15,
+                10,
+                tzinfo=tzutc()
+            ),
+        'console_output': {'Output': 'RHEL Linux', },
+    }
+
+
+    ec2_instance = MockEC2Instance(instance_data)
+    instance = accloudtant.aws.instance.Instance(ec2_instance)
+
+    assert(instance.id == ec2_instance.id)
+    assert(instance.reserved == 'No')
+    assert(instance.name == '')
+    assert(instance.size == ec2_instance.instance_type)
+    assert(instance.availability_zone == az)
+    assert(instance.region == region)
+    assert(instance.operating_system == 'Red Hat Enterprise Linux')
+    assert(instance.key == 'rhel')
+    assert(instance.state == ec2_instance.state['Name'])
+    assert(instance.current == 0.0)
+    assert(instance.best == 0.0)
+
+    with pytest.raises(ValueError):
+        instance.reserved = 'Maybe'
+
+    instance.current = 0.392
+    instance.best = 0.293
+
+    assert(instance.current == 0.392)
+    assert(instance.best == 0.293)
+
+
 def test_guess_os():
     instance_data_win = {
             'id': 'i-912a4392',

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest
3.9
requirements/base.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
-e git+https://github.com/ifosch/accloudtant.git@9dd6000060b4bddfa5366ef3102fe7d42371d514#egg=accloudtant
boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-dateutil==2.9.0.post0
requests==2.32.3
s3transfer==0.11.4
six==1.17.0
tabulate==0.9.0
tomli==2.2.1
urllib3==1.26.20

name: accloudtant
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - boto3==1.37.23
      - botocore==1.37.23
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - click==8.1.8
      - exceptiongroup==1.2.2
      - idna==3.10
      - iniconfig==2.1.0
      - jmespath==1.0.1
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - python-dateutil==2.9.0.post0
      - requests==2.32.3
      - s3transfer==0.11.4
      - six==1.17.0
      - tabulate==0.9.0
      - tomli==2.2.1
      - urllib3==1.26.20
prefix: /opt/conda/envs/accloudtant

tests/aws/test_instance.py::test_unnamed_instance
tests/aws/test_instance.py::test_instance tests/aws/test_instance.py::test_guess_os tests/aws/test_instance.py::test_match_reserved_instance
accloudtant/aws/instance.py
accloudtant/aws/instance.py