Fix another bug in file_modification_datetime
git-svn-id: svn://svn.berlios.de/gpodder/trunk@554 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
parent
eaea0425e5
commit
4e2b9033c0
|
@ -1,3 +1,9 @@
|
|||
Wed, 30 Jan 2008 09:47:21 +0100 <thp@perli.net>
|
||||
Fix another bug in file_modification_datetime
|
||||
|
||||
* src/gpodder/util.py: Another problem that happens with special
|
||||
iTunesDB settings, thanks to FriedBunny <friedbunny@kulturny.com>
|
||||
|
||||
Wed, 30 Jan 2008 09:23:19 +0100 <thp@perli.net>
|
||||
Fix a bug in the file size calculation
|
||||
|
||||
|
|
|
@ -171,6 +171,9 @@ def file_modification_datetime(filename):
|
|||
as a datetime.datetime object or None if the modification
|
||||
date cannot be determined.
|
||||
"""
|
||||
if filename is None:
|
||||
return None
|
||||
|
||||
if not os.access(filename, os.R_OK):
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue