Skip to content

Commit

Permalink
Fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihweiLHBird committed Sep 30, 2020
1 parent 074ccad commit 8d8dc69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrfume/datajoint_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def set_dj_definition(cls, type_map: dict = None) -> None:
#

# skip if type_hint doesn't suggest the type of keys and values in the dict.
if type_hint.__name__ == 'dict':
if hasattr(type_hint, __name__) and type_hint.__name__ == 'dict':
continue

part_cls_name = attr[0].upper() + attr[1:]
Expand Down

0 comments on commit 8d8dc69

Please sign in to comment.