added try/except to duration
Merge pull request #634 from shopgirl284/pbsfix

added try/except to duration