Browse Source

flake8 cleanup

Alois Mahdal 10 years ago
parent
commit
7184b86bc7
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      plugins/dropbox.py

+ 1
- 3
plugins/dropbox.py View File

2
 
2
 
3
 import sardine
3
 import sardine
4
 
4
 
5
-import os
6
 import subprocess
5
 import subprocess
7
 
6
 
8
 
7
 
61
         cmd = ['dropbox', 'status']
60
         cmd = ['dropbox', 'status']
62
         try:
61
         try:
63
             out = subprocess.check_output(cmd)
62
             out = subprocess.check_output(cmd)
64
-        except OSError as e:
63
+        except OSError:
65
             self.status = DropboxStatus.error
64
             self.status = DropboxStatus.error
66
         else:
65
         else:
67
-            lines = out.split("\n")
68
             if "Up to date" in out:
66
             if "Up to date" in out:
69
                 self.status = DropboxStatus.up_to_date
67
                 self.status = DropboxStatus.up_to_date
70
                 return
68
                 return