Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion awsfabrictasks/ec2/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ def get_by_nametag(cls, instancename_with_optional_region):
the region.
:return: A :class:`Ec2InstanceWrapper` contaning the requested instance.
"""
region, name = parse_instancename(instancename_with_optional_region)
try:
region, name = parse_instancename(instancename_with_optional_region)
except TypeError:
raise TypeError("Did you supply an argument to the ec2instance decorator?")
connection = connect_to_region(region_name=region, **awsfab_settings.AUTH)
if not connection:
raise Ec2RegionConnectionError(region)
Expand Down