Error when leaving general settings dialog (clicking ok or cancel)

Bug #472173 reported by Rob Oakes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Time Drive
Fix Released
Medium
Philippe Delodder

Bug Description

I get the following error when trying to leave the general settings dialog. It appears to be part of the new validation code:

Traceback (most recent call last):
  File "/mnt/hgfs/Developer/Projects/Time-Drive/timedrive/generalsettingsdialog.py", line 350, in btnOk_Pressed
    if gui_utils.checkRemoteSettings(self, str(self.ui.txtRemoteHost.text())):
  File "/mnt/hgfs/Developer/Projects/Time-Drive/timedrive/utils/gui_utils.py", line 31, in checkRemoteSettings
    if v.check(v.HOSTNAME, host):
  File "/mnt/hgfs/Developer/Projects/Time-Drive/timedrive/utils/validate.py", line 41, in check
    return self._validate_hostname(value)
  File "/mnt/hgfs/Developer/Projects/Time-Drive/timedrive/utils/validate.py", line 61, in _validate_hostname
    except socket.gaierror,e:
NameError: global name 'socket' is not defined

Rob Oakes (robertsoakes)
Changed in time-drive:
importance: Undecided → Medium
milestone: none → 0.4
Changed in time-drive:
assignee: nobody → Philippe Delodder (lodder)
status: New → In Progress
status: In Progress → Fix Committed
Changed in time-drive:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.