IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11834


Ignore:
Timestamp:
Feb 15, 2007, 12:04:03 PM (19 years ago)
Author:
jhoblitt
Message:

trap exceptions from DateStore::File::Parse in DataStore::FileSet being caused by empty file lists

Location:
trunk/DataStore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/Changes

    r11558 r11834  
    11Revision history for Perl module DataStore
     2
     30.07
     4    - trap exceptions from DateStore::File::Parse in DataStore::FileSet being
     5      caused by empty file lists
    26
    370.06 Thu Feb  1 13:57:56 HST 2007
  • trunk/DataStore/lib/DataStore/FileSet.pm

    r7951 r11834  
    11# Copyright (C) 2006  Joshua Hoblitt
    22#
    3 # $Id: FileSet.pm,v 1.11 2006-07-22 01:17:33 smalle Exp $
     3# $Id: FileSet.pm,v 1.12 2007-02-15 22:04:03 jhoblitt Exp $
    44
    55package DataStore::FileSet;
     
    199199        my $parser = DataStore::File::Parser->new(base_uri => $self->uri);
    200200
    201         $data = $parser->parse($response->content);
     201        eval {
     202            $data = $parser->parse($response->content);
     203        };
     204        if ($@) {
     205            carp "error parsing DataStore File format: $@";
     206        }
    202207    }
    203208
Note: See TracChangeset for help on using the changeset viewer.