diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 428: Catch specific exception

Message ID 20121031133814.30547.11723.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Dave Pigott Oct. 31, 2012, 1:38 p.m. UTC
------------------------------------------------------------
revno: 428
committer: dave.pigott@linaro.org
branch nick: network-retry
timestamp: Wed 2012-10-31 14:35:24 +0100
message:
  Catch specific exception
modified:
  lava_dispatcher/device/master.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/device/master.py'
--- lava_dispatcher/device/master.py	2012-10-31 13:24:29 +0000
+++ lava_dispatcher/device/master.py	2012-10-31 13:35:24 +0000
@@ -460,7 +460,7 @@ 
             try:
                 self.wait_network_up()
                 network_up = True
-            except:
+            except NetworkError:
                 target.boot_master_image()
                 attempts = attempts-1
         if not network_up: