Skip to content

Commit

Permalink
Force class URL attribute to be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed May 6, 2018
1 parent 122bcc2 commit adf7793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciunit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _id(self):

@property
def _class(self):
url = getattr(self.__class__,'remote_url','')
url = '' if self.url is None else self.url
return {'name':self.__class__.__name__,
'url':url}

Expand Down

0 comments on commit adf7793

Please sign in to comment.