[game-data-packager] 01/01: engine: 'NoneType' object has no attribute 'split'

Alexandre Detiste detiste-guest at moszumanska.debian.org
Thu Mar 12 10:10:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit d2a4a4a6ba9822c75015ffa7ebfd317baba0eff6
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Thu Mar 12 11:09:42 2015 +0100

    engine: 'NoneType' object has no attribute 'split'
    
    this would ever show if a game a no engine defined
---
 game_data_packager/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 42a5a4d..042d4a7 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -1888,8 +1888,8 @@ class GameData(object):
                 long_desc += ' Game: ' + longname
 
             engine = package.engine or self.engine
-            engine = engine.split('|')[0].split('(')[0].strip()
             if engine:
+                engine = engine.split('|')[0].split('(')[0].strip()
                 long_desc += '\n .\n'
                 long_desc += ' Intended for use with: ' + engine
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list