Skip to content

Commit

Permalink
Fixed #11
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed May 9, 2019
1 parent 519fa11 commit 249e11b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/macrogen/uris.py
Expand Up @@ -291,6 +291,9 @@ def get(cls, uri, allow_duplicate=True):
cls._load_database()
cls._load_paralipomena()

orig_uri = uri
uri = uri.replace('-', '_')

if uri in cls.corrections:
correction = cls.corrections[uri]
if correction in cls.database:
Expand All @@ -299,8 +302,6 @@ def get(cls, uri, allow_duplicate=True):
logger.warning('Corrected %s to %s, but it is not in the database', uri, correction)
uri = correction

orig_uri = uri
uri = uri.replace('-', '_')


if uri in cls.database:
Expand Down

0 comments on commit 249e11b

Please sign in to comment.