Skip to content

Commit

Permalink
another fix of flake8 errors identified in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stuchalk committed Dec 18, 2023
1 parent e40b639 commit 6d7d0e3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scidatalib/scidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,18 +457,14 @@ def ids(self, ids: [str, list]) -> list:
for idee in ids:
if ':' in idee:
if idee.split(':')[0] not in self.nspaces.keys():
print('Note: Namespace <' +
idee.split(':')[0] +
"> not set. A crosswalk "
"url prefix is likely not "
"matched with it's linked namespace")
print('Note: Namespace <' + idee.split(':')[0] + "> not set. A crosswalk "
"url prefix is likely not matched with it's linked namespace")
# raise EnvironmentError
curr_ids.append(idee)
elif isinstance(ids, str):
if ':' in ids:
if ids.split(':')[0] not in self.nspaces.keys():
print('Note: Namespace <' + ids.split(':')[0] +
"> not set. A crosswalk url prefix is "
print('Note: Namespace <' + ids.split(':')[0] + "> not set. A crosswalk url prefix is "
"likely not matched with it's linked namespace")
# raise EnvironmentError
curr_ids.append(ids)
Expand Down

0 comments on commit 6d7d0e3

Please sign in to comment.