summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--installclass.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/installclass.py b/installclass.py
index 1366ab932..c835eb8d3 100644
--- a/installclass.py
+++ b/installclass.py
@@ -322,10 +322,12 @@ class BaseInstallClass:
raise RuntimeError, "Could not probe video card and no fallback specified"
id.videocard.setVidcard(vc)
- if type(videoRam) == type(1024):
- tmpram = videoRam
- else:
- tmpram = string.atoi(videoRam)
+ tmpram = None
+ if videoRam != None:
+ if type(videoRam) == type(1024):
+ tmpram = videoRam
+ else:
+ tmpram = string.atoi(videoRam)
if tmpram in id.videocard.possible_ram_sizes():
id.videocard.primaryCard().setVideoRam(str(tmpram))