Merge lp:~fabien-morin/unifield-wm/sync-fm-us-786 into lp:unifield-wm/sync

Proposed by jftempo
Status: Merged
Merged at revision: 617
Proposed branch: lp:~fabien-morin/unifield-wm/sync-fm-us-786
Merge into: lp:unifield-wm/sync
Diff against target: 11 lines (+1/-1)
1 file modified
sync_client/backup.py (+1/-1)
To merge this branch: bzr merge lp:~fabien-morin/unifield-wm/sync-fm-us-786
Reviewer Review Type Date Requested Status
UniField Sync Reviewer Pending
Review via email: mp+279554@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sync_client/backup.py'
2--- sync_client/backup.py 2015-11-23 16:39:39 +0000
3+++ sync_client/backup.py 2015-12-04 09:21:13 +0000
4@@ -192,7 +192,7 @@
5 def _get_bck_path(self, cr, uid, context=None):
6 res = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'sync_client', 'backup_config_default')
7 path = self.pool.get('backup.config').read(cr, uid, res[1], ['name'], context=context)
8- if os.path.isdir(path['name']):
9+ if path['name'] and os.path.isdir(path['name']):
10 return path['name']
11 return False
12

Subscribers

People subscribed via source and target branches