~ahayzen/htd/31.fix.1059893

« back to all changes in this revision

Viewing changes to htd31/_objects/connection.py

Parameter type check improvements.
Fixes bug 1036377 and bug 1036395.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        self.alive = True
40
40
        self._children = []
41
41
 
 
42
        # Confirm location is str
 
43
        if not isinstance(location, str):
 
44
            raise ValueError("location (%s) must be a str object." % location)
 
45
 
42
46
        # Load user
43
47
        if user is None:
44
48
            user = Authenticate("guest", None)