Skip to content

Commit

Permalink
Ignore nonexistant 'uploads' directory
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
  • Loading branch information
jim-easterbrook committed Jul 8, 2017
1 parent 3827aa8 commit 001b76b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/pywws/Tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2008-16 pywws contributors
# Copyright (C) 2008-17 pywws contributors

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -352,6 +352,8 @@ def do_tasks(self):
self.monthly_data.flush()

def _do_uploads(self):
if not os.path.isdir(self.uploads_directory):
return True
# get list of pending uploads
uploads = []
for name in os.listdir(self.uploads_directory):
Expand Down
6 changes: 3 additions & 3 deletions src/pywws/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '17.03.0'
_release = '1375'
_commit = '1046e55'
__version__ = '17.07.0'
_release = '1376'
_commit = '3827aa8'

0 comments on commit 001b76b

Please sign in to comment.