From: Eric S. Raymond Date: Fri, 26 Dec 2003 20:19:36 +0000 (+0000) Subject: Another try at getting this right. X-Git-Tag: 2.0~61 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=e835a07e3a0c443abdc1436029462492d31f345d;p=freecode-submit.git Another try at getting this right. --- diff --git a/freshmeat-submit b/freshmeat-submit index 190c428..ab93738 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -210,7 +210,7 @@ class FreshmeatMetadataFactory: "Validate a metadata object using the Freshmeat server" # Validate Release-Focus field if present focus = data.get('release_focus') - if focus and not focus.isdigit(): + if focus and type(focus) != type(0): if not session: session = FreshmeatSession(verbose=int(verbose)) freshmeat_foci = session.session.fetch_available_release_foci()