Skip to content

Commit ebb10c4

Browse files
committed
fix for really old web2py versions
1 parent ad029d9 commit ebb10c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

private/w2p_tvseries_installer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ def parse_web2py_version(version_file):
100100
version = version.replace('Version ', '')
101101
version = version[:version.find('-')]
102102
version = version.split('.')
103-
return [int(a) for a in version]
103+
try:
104+
version = [int(a) for a in version]
105+
except:
106+
version = [0,0,0]
107+
return version
104108

105109
def update_w2p_tvseries(w2p_folder, version):
106110
if raw_input('Q: Update/download app from internet ([Y]/n)?').lower() in ['y', 'yes']:

0 commit comments

Comments
 (0)