Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.
This repository was archived by the owner on May 16, 2023. It is now read-only.

Directory structure prevents importing MalformedArn exceptioin #11

@Quidge

Description

@Quidge

Because the module arnparse shadows the package name + the module is imported in the init, it's not possible to import the MalformedArnError.

I want to do this but can't at the moment:

from arnparse import arnparse, MalformedArnException

...

try:
	arn = arnparse(<bad arn str>)
except MalformedArnException as e:
	print(e.arn_str)

Nor is this possible:

import arnparse

...

try:
	arn = arnparse.arnparse.arnparse(<bad arn str>)
except arnparse.arnparse.MalformedArnException as e:
	print(e.arn_str)

Ideas? Like the lib and like the tests to outsource tricky string parsing stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions