From 7614e95084fb6371a34b355c0ce69c8b74bc8f9c Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Sat, 22 Dec 2012 01:19:14 +0000 Subject: [PATCH] Handle case of no numeric portion of issue number git-svn-id: http://comictagger.googlecode.com/svn/trunk@288 6c5673fe-1810-88d6-992b-cd32ca31540c --- issuestring.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/issuestring.py b/issuestring.py index cb5c83d..b3d4fcb 100644 --- a/issuestring.py +++ b/issuestring.py @@ -56,6 +56,9 @@ class IssueString: def asString( self, pad = 0 ): #return the float, left side zero-padded, with suffix attached + if self.num is None: + return self.suffix + negative = self.num < 0 num_f = abs(self.num) @@ -85,6 +88,8 @@ class IssueString: def asInt( self ): #return the int version of the float + if self.num is None: + return None return int( self.num )