Added Exception (Select server)

This commit is contained in:
hakasenyang
2017-04-23 10:07:53 +09:00
parent dd2daa120d
commit b5932050b9
+3 -6
View File
@@ -120,8 +120,7 @@
$this->RealID = $this->Parser->splits($this->data_profile, '<title>', '&#39;s profile - Ripple'); $this->RealID = $this->Parser->splits($this->data_profile, '<title>', '&#39;s profile - Ripple');
break; break;
default: default:
$this->ResetObject(); throw new \Exception($server . ' is not supported.');
return false;
} }
if(empty($this->OsuID) || empty($this->RealID)) if(empty($this->OsuID) || empty($this->RealID))
{ {
@@ -137,8 +136,7 @@
$this->Occupation = $this->Parser->splits($this->data_profile, '(aka <b>', '</b>)'); $this->Occupation = $this->Parser->splits($this->data_profile, '(aka <b>', '</b>)');
break; break;
default: default:
$this->ResetObject(); throw new \Exception($this->server . ' is not supported.');
return false;
} }
$this->GetOccupation(); $this->GetOccupation();
@@ -194,8 +192,7 @@
$this->Rank = str_replace('#', NULL, $this->Parser->splits($this->data_profile, '<td class="right aligned">', '</td>', 1 + ($this->mode * 9))); $this->Rank = str_replace('#', NULL, $this->Parser->splits($this->data_profile, '<td class="right aligned">', '</td>', 1 + ($this->mode * 9)));
break; break;
default: default:
$this->ResetObject(); throw new \Exception($this->server . ' is not supported.');
return false;
} }
} }
/** /**