Flake8 fixes.

This commit is contained in:
Chris Church
2016-02-16 20:02:52 -05:00
parent 4873e2413f
commit 99150b5a05
3 changed files with 3 additions and 4 deletions

View File

@@ -1251,7 +1251,7 @@ class InventorySourceOptionsSerializer(BaseSerializer):
source = attrs.get('source', self.instance and self.instance.source or '')
source_script = attrs.get('source_script', self.instance and self.instance.source_script or '')
if source == 'custom':
if not source_script is None or source_script == '':
if source_script is None or source_script == '':
errors['source_script'] = 'source_script must be provided'
else:
try: